* {
    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: #fff;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header & Nav */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

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

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #007bff;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin: 10px 0;
    color: #2c3e50;
}

.subtitle {
    color: #007bff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #f0f0f0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: #2c3e50;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    margin-top: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #007bff;
}

/* Style untuk Dark Mode */
body.dark-mode {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

body.dark-mode header, 
body.dark-mode .skill-card, 
body.dark-mode .project-card,
body.dark-mode footer {
    background-color: #2d2d2d;
    color: #fff;
    box-shadow: 0 4px 6px rgba(255,255,255,0.05); 
}

body.dark-mode .section-gray {
    background-color: #252525;
}

body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4 {
    color: #61dafb; 
}

body.dark-mode nav a {
    color: #f0f0f0; 
}

body.dark-mode nav a:hover {
    color: #61dafb; 
}

body.dark-mode header h1 {
    color: #ffffff;
}

/* Sections General */
section {
    padding: 60px 0;
}

.section-gray {
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #2c3e50;
}

.text-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

/* Skills Grid */
.skills-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.skill-card {
    background: white;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    font-weight: 600;
    border: 1px solid #eee;
}

/* Projects Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.project-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.project-card h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.social-links {
    display: flex;
    justify-content: center; 
    gap: 15px; 
    margin-top: 20px;
    flex-wrap: wrap; 
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: transform 0.3s, opacity 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.social-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.github-btn {
    background-color: #333;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    nav ul {
        display: none; 
    }
}