@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --dark: #0f172a;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section (Full Height) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 100px 1.5rem 60px;
}

/* Animated Background Icons */
.hero-bg-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    opacity: 0.1;
    z-index: 0;
}

.hero-bg-icons i {
    position: absolute;
    font-size: 2rem;
    animation: float 20s infinite;
}

.hero-bg-icons i:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.hero-bg-icons i:nth-child(2) { left: 20%; top: 80%; animation-delay: 2s; }
.hero-bg-icons i:nth-child(3) { left: 80%; top: 30%; animation-delay: 4s; }
.hero-bg-icons i:nth-child(4) { left: 70%; top: 70%; animation-delay: 6s; }
.hero-bg-icons i:nth-child(5) { left: 30%; top: 50%; animation-delay: 8s; }
.hero-bg-icons i:nth-child(6) { left: 50%; top: 10%; animation-delay: 10s; }
.hero-bg-icons i:nth-child(7) { left: 90%; top: 50%; animation-delay: 12s; }
.hero-bg-icons i:nth-child(8) { left: 15%; top: 60%; animation-delay: 14s; }
.hero-bg-icons i:nth-child(9) { left: 60%; top: 90%; animation-delay: 16s; }
.hero-bg-icons i:nth-child(10) { left: 40%; top: 30%; animation-delay: 18s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-image {
    position: relative;
    margin: 0 auto 2rem;
    width: 160px;
    height: 160px;
}

.hero-image img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 5px solid var(--white);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.hero-image-ring {
    display: none; /* Hilangkan animasi ring */
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.8;
    padding: 0 1rem;
}

.hero-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-social a {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    transition: all 0.3s;
    text-decoration: none;
}

.hero-social a:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 1rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Buttons */
.btn {
    padding: 0.85rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37,99,235,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-outline-dark {
    background: transparent;
    color: var(--dark);
    border-color: var(--dark);
}

.btn-outline-dark:hover {
    background: var(--dark);
    color: var(--white);
}

.btn-success {
    background: var(--secondary);
    color: var(--white);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(16,185,129,0.4);
}

/* Small Buttons for Project Cards */
.btn-sm {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.btn-demo {
    background: var(--primary);
    color: var(--white);
}

.btn-demo:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37,99,235,0.3);
}

.btn-detail {
    background: var(--light-gray);
    color: var(--dark);
}

.btn-detail:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

/* Projects */
.projects {
    background: var(--light-gray);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.project-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--light-gray);
    cursor: pointer;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.15);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray);
}

.badge-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--secondary);
    color: var(--white);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16,185,129,0.4);
}

.project-body {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-excerpt {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.project-tech span {
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.project-footer {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
    flex-wrap: wrap;
}

/* Contact */
.contact {
    background: var(--white);
    text-align: center;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

/* Footer */
/* Modern Footer Styles */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0 1.5rem;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Brand Column */
.footer-brand-col {
    max-width: 400px;
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* Footer Headings */
.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* Contact Info */
.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--primary);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-tagline-bottom {
    font-size: 0.85rem;
    font-style: italic;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-brand-col {
        max-width: 100%;
    }
    
    .footer-brand {
        font-size: 1.5rem;
    }
    
    .footer-social {
        justify-content: flex-start;
    }
    
    .footer-heading::after {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-brand {
        font-size: 1.3rem;
    }
    
    .social-btn {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}


/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(37,99,235,0.5);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray);
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        gap: 0;
    }
    
    .nav-menu.active {
        max-height: 300px;
    }
    
    .nav-menu li {
        padding: 1rem;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .nav-menu a {
        justify-content: left;
    }
    
    /* Hero Mobile */
    .hero {
        padding: 100px 1rem 60px;
        min-height: 100vh;
    }
    
    .hero-image {
        width: 120px;
        height: 120px;
    }
    
    .hero-image img {
        width: 120px;
        height: 120px;
        border: 4px solid var(--white);
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        padding: 0;
    }
    
    .hero-social {
        gap: 0.75rem;
    }
    
    .hero-social a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .scroll-indicator {
        bottom: 15px;
    }
    
    .scroll-indicator i {
        font-size: 1.5rem;
    }
    
    /* Sections Mobile */
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Projects Mobile */
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .project-excerpt {
        font-size: 0.9rem;
    }
    
    .project-footer {
        justify-content: space-between;
    }
    
    .btn-sm {
        flex: 1;
        justify-content: center;
    }
    
    /* Contact Mobile */
    .contact-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .contact-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-brand h3 {
        font-size: 1.3rem;
    }
    
    /* Back to Top Mobile */
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    /* Background icons - PAKSA tampil dengan !important */
    .hero-bg-icons {
        display: block !important;
        opacity: 1 !important;
    }
    
    .hero-bg-icons i {
        font-size: 1.8rem !important;
        opacity: 0.08 !important;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-brand {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .project-grid {
        gap: 1.25rem;
    }

    /* Background icons - PAKSA tampil dengan !important */
    .hero-bg-icons {
        display: block !important;
        opacity: 1 !important;
    }
    
    .hero-bg-icons i {
        font-size: 1.8rem !important;
        opacity: 0.08 !important;
    }
}

/* Page Header */
.page-header {
    padding: 90px 0 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Adjust projects section spacing when after page header */
.page-header + .projects {
    padding-top: 30px;
}

/* Mobile Page Header */
@media (max-width: 768px) {
    .page-header {
        padding: 75px 1rem 15px;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
        flex-direction: column;
    }
    
    .page-header p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 0.85rem;
    }
}

/* Smooth scroll global */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 30px;
}

/* Pastikan section punya margin yang cukup */
section {
    padding: 30px 0;
}

/* Khusus section yang akan di-scroll ke */
#home,
#projects,
#contact {
    scroll-margin-top: 30px;
}

/* Mobile adjustment */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 30px;
    }
    
    #home,
    #projects,
    #contact {
        scroll-margin-top: 30px;
    }
}
