:root {
    --bg-main: #0a192f;
    --bg-secondary: #112240;
    --bg-card: #233554;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --accent: #64ffda;
    --font-sans: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header & Nav */
header {
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    flex-wrap: wrap;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent);
    font-size: 28px;
    cursor: pointer;
}

.logo {
    color: var(--accent);
    font-size: 24px;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn-primary {
    display: inline-block;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: rgba(100, 255, 218, 0.1);
}

/* Main Layout */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px 0;
}

.section {
    padding: 80px 0;
}

.section-title {
    color: var(--text-primary);
    font-size: 32px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: "";
    display: block;
    height: 1px;
    background: var(--bg-card);
    width: 300px;
    margin-left: 20px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    gap: 50px;
}

.greeting {
    color: var(--accent);
    font-family: monospace;
    font-size: 16px;
    margin-bottom: 20px;
}

.hero-content .name {
    font-size: 60px;
    color: var(--text-primary);
    line-height: 1.1;
}

.hero-content .subtitle {
    font-size: 40px;
    color: var(--text-secondary);
    margin-top: 10px;
    margin-bottom: 25px;
}

.hero-description {
    color: var(--text-secondary);
    max-width: 500px;
    font-size: 18px;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-primary);
    font-size: 24px;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.hero-image {
    flex-shrink: 0;
}

.foto-perfil {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.4s ease;
    border: 2px solid var(--accent);
    box-shadow: 15px 15px 0px 0px rgba(100,255,218,0.2);
}

.foto-perfil:hover {
    filter: grayscale(0%);
}

/* About Section */
.about-content {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 700px;
}

.about-content p {
    margin-bottom: 20px;
}

.about-content strong {
    color: var(--accent);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--bg-card);
}

.skill-category h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 20px;
}

.skill-list {
    list-style: none;
    color: var(--text-secondary);
}

.skill-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.skill-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
}

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

.project-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: transform 0.3s;
    border: 1px solid var(--bg-card);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--bg-card);
}

.project-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-content h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.project-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 15px;
    flex-grow: 1;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    font-family: monospace;
    font-size: 13px;
    color: var(--text-primary);
}

.project-tech span {
    background: var(--bg-card);
    padding: 5px 10px;
    border-radius: 4px;
}

.project-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
}

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

.status-badge {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

/* Education Section */
.education-timeline {
    max-width: 600px;
}

.edu-item {
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 2px solid var(--bg-card);
    position: relative;
}

.edu-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
}

.edu-date {
    color: var(--accent);
    font-family: monospace;
    margin-bottom: 5px;
}

.edu-item h3 {
    color: var(--text-primary);
    font-size: 20px;
    margin-bottom: 5px;
}

.edu-inst {
    color: var(--text-secondary);
    font-weight: 500;
}

.edu-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 10px;
}

/* Contact Section */
.contact-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section .section-title {
    justify-content: center;
}

.contact-section .section-title::after {
    display: none;
}

.contact-section p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.contact-item i {
    color: var(--accent);
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent);
}

footer {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    font-family: monospace;
    font-size: 14px;
}

/* Utility Classes */
.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    margin-right: 10px;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mt-30 {
    margin-top: 30px;
}

.nav-active {
    color: var(--accent) !important;
}

/* Blog Page Styles */
.blog-header {
    text-align: center;
    padding: 100px 20px 50px;
}

.blog-header h2 {
    font-size: 40px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.blog-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

/* Project Details Page Styles */
.project-detail-header {
    text-align: center;
    padding: 80px 20px 40px;
}

.project-detail-header h2 {
    font-size: 40px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.project-detail-header .subtitle {
    color: var(--accent);
    font-family: monospace;
    font-size: 16px;
    margin-bottom: 30px;
}

.project-body {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 18px;
}

.project-section {
    margin-bottom: 40px;
}

.project-section h3 {
    color: var(--text-primary);
    font-size: 24px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--bg-card);
    padding-bottom: 10px;
}

.project-section p {
    margin-bottom: 15px;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.project-tech-list span {
    background: var(--bg-card);
    color: var(--accent);
    padding: 8px 15px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

/* ========================================= */
/* Media Queries (Responsive Design)         */
/* ========================================= */
@media (max-width: 1024px) {
    main {
        padding-top: 120px;
    }
}

@media (max-width: 768px) {
    /* Navbar Hamburger Menu */
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        margin-top: 15px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .desktop-only {
        display: none;
    }
    
    .nav-container {
        padding: 15px 20px;
    }
    
    /* Hero Section */
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 20px;
        gap: 30px;
    }
    
    .hero-content .name {
        font-size: 40px;
    }
    
    .hero-content .subtitle {
        font-size: 24px;
    }
    
    .hero-description {
        margin: 0 auto 30px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .foto-perfil {
        width: 220px;
        height: 220px;
        box-shadow: 10px 10px 0px 0px rgba(100,255,218,0.2);
    }
    
    /* General Settings */
    main {
        padding-top: 160px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .section-title::after {
        width: 80px;
        margin-left: 10px;
    }
    
    /* Projects Grid - prevent overflow on tablet/mobile */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    /* Mobile small tweaks */
    .hero-content .name {
        font-size: 32px;
    }
    
    .hero-content .subtitle {
        font-size: 18px;
    }
    
    .nav-container {
        padding: 10px;
    }
    
    nav ul {
        gap: 10px;
    }
    
    nav a {
        font-size: 13px;
    }
    
    .foto-perfil {
        width: 180px;
        height: 180px;
    }
    
    /* Projects Grid - force 1 column and fit screen */
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .project-links a, .project-links span {
        margin-right: 0;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Project Detail Page */
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .project-detail-header h2 {
        font-size: 28px;
    }
    
    .blog-header h2 {
        font-size: 28px;
    }
}
