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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #0a0a0a;
}

/* Particle Background */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-avatar {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-avatar .icon {
    width: 1rem;
    height: 1rem;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.navbar-name {
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.navbar-link:hover {
    color: #3B82F6;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #3B82F6;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.1) 0%, rgba(10, 10, 10, 1) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 6rem 2rem 2rem;
}

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

.hero-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

.hero-icon .icon {
    width: 2rem;
    height: 2rem;
    stroke: white;
    fill: none;
    stroke-width: 1.5;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-gradient {
    background: linear-gradient(135deg, #3B82F6, #06B6D4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #3B82F6;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Projects Section */
.projects-section {
    padding: 6rem 2rem;
    background: #0a0a0a;
    position: relative;
    z-index: 2;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Cards Grid - Modified to 2x2 layout */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-category {
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.card-category.amdal {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.card-category.kebencanaan {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.card-category.urban {
    background: rgba(168, 85, 247, 0.2);
    color: #A855F7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.card-category.pertanian {
    background: rgba(249, 115, 22, 0.2);
    color: #F97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.card-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.card-arrow {
    width: 1.5rem;
    height: 1.5rem;
    stroke: rgba(255, 255, 255, 0.5);
    fill: none;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.card:hover .card-arrow {
    stroke: #3B82F6;
    transform: translateX(4px);
}

.card-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-icon {
    width: 1rem;
    height: 1rem;
    stroke: rgba(255, 255, 255, 0.6);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.meta-item span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3B82F6;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

/* Skills Section */
.skills-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
    position: relative;
    z-index: 2;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.skill-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid;
    display: inline-block;
}

.skill-title.drone-hardware {
    color: #3B82F6;
    border-color: #3B82F6;
}

.skill-title.software {
    color: #06B6D4;
    border-color: #06B6D4;
}

.skill-title.applications {
    color: #8B5CF6;
    border-color: #8B5CF6;
}

.skill-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-item {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    position: relative;
    padding-left: 1.5rem;
}

.skill-item::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #3B82F6;
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    padding: 6rem 2rem;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.1) 0%, rgba(10, 10, 10, 1) 70%);
    text-align: center;
    position: relative;
    z-index: 2;
}

.contact-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.contact-button {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto;
    position: relative;
    backdrop-filter: blur(20px);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-category {
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.modal-category.kebencanaan {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.modal-category.urban {
    background: rgba(168, 85, 247, 0.2);
    color: #A855F7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.modal-category.pertanian {
    background: rgba(249, 115, 22, 0.2);
    color: #F97316;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.modal-title {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.close {
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0.5rem;
    margin: -0.5rem;
}

.close:hover {
    color: white;
}

.modal-body {
    padding: 2rem;
}

.modal-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Modal Layout for AMDAL and Pertanian */
.modal-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.modal-image-section {
    position: relative;
}

/* Enlarged images for AMDAL modal */
.modal-image-section.enlarged .modal-slider img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    border-radius: 1rem;
}

.modal-slider {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.modal-slider img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 1rem;
}

.slide {
    display: none;
}

.slide.active {
    display: block;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.prev-btn,
.next-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(59, 130, 246, 0.8);
    transform: scale(1.1);
}

.slide-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #3B82F6;
    transform: scale(1.2);
}

.modal-content-section {
    position: relative;
}

.slide-content {
    display: none;
}

.slide-content.active {
    display: block;
}

.slide-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.slide-meta {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.slide-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.slide-meta .meta-icon {
    width: 1rem;
    height: 1rem;
    stroke: rgba(255, 255, 255, 0.6);
    fill: none;
    stroke-width: 2;
}

.slide-meta span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.slide-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-section h4 {
    color: #3B82F6;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.detail-text {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list li {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.detail-list li::before {
    content: '•';
    color: #3B82F6;
    position: absolute;
    left: 0;
}

/* Modal 3 specific styles (Urban) - Fixed Structure */
.modal-slider-container {
    margin-top: 2rem;
}

.modal-slider-container .modal-slider {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.modal-slider-container .slide {
    display: none;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.modal-slider-container .slide.active {
    display: block;
}

.slide-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

.image-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem 0.75rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.slide-content-text {
    margin-top: 1rem;
}

.slide-content-text .slide-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.slide-content-text .slide-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.slide-content-text .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.slide-content-text .meta-icon {
    width: 1rem;
    height: 1rem;
    stroke: rgba(255, 255, 255, 0.6);
    fill: none;
    stroke-width: 2;
}

.slide-content-text .meta-item span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.slide-content-text .slide-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.slide-content-text .project-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.slide-content-text .detail-section h4 {
    color: #A855F7;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.slide-content-text .detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.slide-content-text .detail-list li {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.slide-content-text .detail-list li::before {
    content: '•';
    color: #A855F7;
    position: absolute;
    left: 0;
}

/* Modal 3 Slider Controls */
.modal-slider-container .slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.modal-slider-container .prev-btn,
.modal-slider-container .next-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.modal-slider-container .prev-btn:hover,
.modal-slider-container .next-btn:hover {
    background: rgba(168, 85, 247, 0.8);
    transform: scale(1.1);
}

.modal-slider-container .slide-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.modal-slider-container .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-slider-container .indicator.active {
    background: #A855F7;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-right .navbar-link {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 4rem 1rem 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .projects-section,
    .skills-section,
    .contact-section {
        padding: 4rem 1rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .modal-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }

    .slide-images {
        grid-template-columns: 1fr;
    }

    .slide-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-slider-container .slide {
        padding: 1.5rem;
    }

    .image-wrapper img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0 1rem;
    }

    .hero {
        padding: 3rem 1rem 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.5rem;
    }

    .card-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .modal-content {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
        border-radius: 1rem;
    }

    .modal-header,
    .modal-body {
        padding: 1rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .slide-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-slider-container .slide {
        padding: 1rem;
    }
}