:root {
    --bg: #fdfbf9;
    --card-white: #ffffff;
    --accent-brown: #5d4037;
    --secondary-brown: #8d6e63;
    --text-dark: #2d2422;
    --text-light: #6d4c41;
    --shadow: 0 15px 35px rgba(93, 64, 55, 0.12);
    --border: #d7ccc8;
}

* { box-sizing: border-box; transition: all 0.3s ease; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.8;
}

/* HERO SECTION */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 10%;
    background: #efebe9;
    gap: 60px;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--border);
}

.hero-text { flex: 1; min-width: 320px; }
.hero-text h1 { font-size: 3.5rem; margin: 0; color: var(--accent-brown); letter-spacing: -1.5px; }
.hero-text p { font-size: 1.2rem; color: var(--text-light); max-width: 600px; margin-top: 15px; }

.profile-container { position: relative; }
.profile-img {
    width: 280px;
    height: 280px;
    border-radius: 25px;
    object-fit: cover;
    transform: rotate(-2deg);
    border: 10px solid white;
    box-shadow: var(--shadow);
}

/* CONTAINER */
.container { max-width: 1200px; margin: auto; padding: 80px 25px; }
.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    border-left: 6px solid var(--accent-brown);
    padding-left: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* FEATURED PROJECT CARD */
.featured-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 60px;
}

.featured-header {
    padding: 50px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
}

.featured-header h3 { font-size: 2rem; margin: 10px 0; color: var(--accent-brown); }

/* IMAGE GRID - 2X2 STYLE */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    padding: 40px;
    background: #faf9f8;
}

.screenshot-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.screenshot-item img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.screenshot-item h4 { margin: 0 0 10px 0; color: var(--accent-brown); font-size: 1.2rem; }
.screenshot-item p { font-size: 0.95rem; color: var(--text-light); margin: 0; }

/* TAGS */
.tag-row { margin-bottom: 20px; }
.tag {
    background: #efebe9;
    color: var(--accent-brown);
    padding: 7px 15px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-right: 8px;
    text-transform: uppercase;
}

/* SECONDARY GRID */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px; }
.project-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.btn {
    display: inline-block;
    background: var(--accent-brown);
    color: white;
    padding: 14px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 25px;
    text-align: center;
}

.btn:hover { background: var(--secondary-brown); transform: translateY(-3px); }

/* CONTACT SECTION */
.contact-section {
    background: #3e2723;
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 30px;
    margin-bottom: 80px;
}

.qr-placeholder {
    background: white;
    padding: 15px;
    display: inline-block;
    border-radius: 15px;
    margin-top: 20px;
}

footer { text-align: center; padding: 40px; color: var(--text-light); font-size: 0.9rem; }

@media (max-width: 768px) {
    .hero { padding: 60px 5%; }
    .hero-text h1 { font-size: 2.5rem; }
    .featured-grid { grid-template-columns: 1fr; padding: 20px; }
    .profile-img { width: 220px; height: 220px; }
}
