/* ===== GLOBAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f6f7;
    color: #333;
    line-height: 1.6;
}

/* ===== LAYOUT ===== */
.container {
    width: 85%;
    max-width: 1100px;
    margin: auto;
    padding: 80px 0;
}

/* ===== NAVIGATION ===== */
/* ===== BRAND (LOGO + NAME) ===== */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 80px;
    height: 100px;
    object-fit: contain;
}

.brand-name {
    font-size: 2.7rem;
    font-weight: 600;
    color: #222;
}

nav {
    background: #ffffff;
    border-bottom: 1px solid #e6e6e6;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-weight: 600;
    color: #222;
}

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

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

nav a:hover {
    color: #000;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: #2f343a;  /* Soft ash */
    color: #f1f1f1;
    text-align: center;
    padding: 120px 20px;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero p {
    max-width: 650px;
    margin: auto;
    color: #d6d6d6;
    font-size: 1.05rem;
    margin-bottom: 35px;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
    display: inline-block;
    margin: 5px;
}

.btn.light {
    background: #ffffff;
    color: #2f343a;
}

.btn.light:hover {
    background: #e5e5e5;
}

.btn.outline-light {
    border: 1px solid #ffffff;
    color: #ffffff;
}

.btn.outline-light:hover {
    background: #ffffff;
    color: #2f343a;
}

/* ===== HEADINGS ===== */
h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #222;
}

/* ===== ABOUT ===== */
#about p {
    max-width: 750px;
    color: #555;
}

/* ===== PROJECTS ===== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
    transform: translateY(-6px);
}

.project-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #222;
}

.project-card p {
    color: #555;
    font-size: 0.95rem;
}

.project-card span {
    display: block;
    margin: 18px 0;
    font-size: 0.85rem;
    color: #888;
}

.project-card a {
    text-decoration: none;
    font-weight: 600;
    color: #2f343a;
}

.project-card a:hover {
    text-decoration: underline;
}

/* ===== SKILLS ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
}

.skills-grid div {
    background: #ffffff;
    padding: 16px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    font-weight: 500;
    transition: 0.3s ease;
}

.skills-grid div:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

/* ===== CONTACT ===== */
#contact p {
    margin-bottom: 10px;
    color: #555;
}

#contact a {
    color: #2f343a;
    text-decoration: none;
}

#contact a:hover {
    text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
    background: #ffffff;
    border-top: 1px solid #e6e6e6;
    text-align: center;
    padding: 30px;
    color: #888;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .container {
        width: 90%;
    }
}