/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #e6f2ff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(73, 155, 255, 0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #004080;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    text-decoration: none;
    color: #004080;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: #007acc;
    background-color: #e6f2ff;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #004080;
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Main Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 90px auto 40px;
    padding: 0 20px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #004080;
    position: relative;
    display: inline-block;
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #007acc;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(73, 155, 255, 0.2);
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #004080;
}

.highlight {
    color: #007acc;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #666;
}

.intro-text {
    font-size: 1rem !important;
    line-height: 1.8;
    margin-bottom: 25px !important;
}

.btn {
    display: inline-block;
    background-color: #007acc;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #005a9e;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 7px solid #e6f2ff;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Portfolio Preview Section */
.portfolio-preview {
    padding: 40px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(73, 155, 255, 0.2);
}

.portfolio-preview h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #004080;
    position: relative;
}

.portfolio-preview h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #007acc;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.portfolio-item {
    background-color: #f5f9ff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e6f2ff;
    color: #007acc;
    font-weight: bold;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #f8f9fa;
    padding: 15px;
}

.portfolio-item h3 {
    padding: 15px 20px 5px;
    font-size: 1.3rem;
    color: #004080;
}

.portfolio-item p {
    padding: 0 20px 15px;
    color: #666;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #007acc;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #007acc;
    transition: all 0.3s;
    text-align: center;
}

.btn-secondary:hover {
    background-color: #007acc;
    color: white;
}

/* About Page Styles */
.about-detail h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    color: #004080;
}

.about-detail h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #007acc;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(73, 155, 255, 0.2);
}

.about-text h2 {
    margin: 30px 0 15px;
    color: #004080;
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.education {
    margin-bottom: 30px;
}

.edu-item {
    background-color: #f5f9ff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    border-left: 4px solid #007acc;
}

.edu-item h3 {
    margin-bottom: 5px;
    color: #004080;
}

.edu-year {
    color: #007acc;
    font-weight: bold;
    margin-bottom: 10px;
}

.skills-detailed {
    margin-bottom: 30px;
}

.skill-category {
    margin-bottom: 25px;
}

.skill-category h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #004080;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-list span {
    background-color: #e9f7e9;
    color: #2e7d32;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
}

.image-placeholder-large {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    border: 7px solid #e6f2ff;
}

.image-placeholder-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Portfolio Page */
.portfolio-page {
    width: 100%;
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.portfolio-project {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e6f2ff;
}

.portfolio-project:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 112, 204, 0.2);
}

.project-image {
    height: 220px;
    background: linear-gradient(135deg, #007acc 0%, #004080 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #f8f9fa;
    padding: 20px;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    color: #004080;
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.project-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: #e6f2ff;
    color: #007acc;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-link {
    flex: 1;
    text-align: center;
    background: #007acc;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: #005a9e;
    transform: translateY(-2px);
}

/* Blog Page */
.blog-page {
    width: 100%;
}

.blog-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-article {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e6f2ff;
}

.blog-article:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 112, 204, 0.15);
}

.article-header {
    padding: 25px 25px 0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.article-category {
    background: #e6f2ff;
    color: #007acc;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-date {
    color: #888;
}

.article-header h3 {
    color: #004080;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.article-content {
    padding: 0 25px 25px;
}

.article-image {
    height: 200px;
    background: linear-gradient(135deg, #007acc 0%, #004080 100%);
    margin: 20px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.article-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.article-footer {
    padding: 20px 25px;
    border-top: 1px solid #e6f2ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    background: #007acc;
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    background: #005a9e;
    transform: translateY(-2px);
}

/* Contact Page - Simple Design */
.kontak-section {
    width: 100%;
}

.kontak-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-card, .form-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.info-header, .form-header {
    background: #007acc;
    color: white;
    padding: 20px;
    text-align: center;
}

.info-header h3, .form-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.info-content, .form-content {
    padding: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.contact-item:hover {
    background-color: #f8f9fa;
}

.contact-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e6f2ff;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-details h4 {
    color: #004080;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-details p {
    color: #555;
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #004080;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e6f2ff;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007acc;
    box-shadow: 0 0 0 3px rgba(0, 112, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: #007acc;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #005a9e;
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Footer */
.site-footer {
    background: #004080;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

.footer-content p {
    margin: 5px 0;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 15px 0;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .kontak-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .portfolio-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-articles {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .main-grid {
        gap: 40px;
        margin: 80px auto 30px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        top: 60px;
    }
    
    .nav-container {
        height: 60px;
    }
    
    .hero {
        padding: 25px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .portfolio-preview,
    .about-content {
        padding: 25px;
    }
    
    .project-info,
    .article-header,
    .article-content,
    .info-content,
    .form-content {
        padding: 20px;
    }
    
    .image-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .image-placeholder-large {
        height: 300px;
    }
    
    .portfolio-image {
        height: 180px;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .article-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* Animation for page elements */
.portfolio-item,
.portfolio-project,
.blog-article,
.info-card,
.form-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}