* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 60px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

/* Navbar Fix */
#nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px 0;
    z-index: 1000;
}

#nav-bar a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
}

#nav-bar a.active {
    color: #149ddd;
    border-bottom: 2px solid #149ddd;
}

/* SECTION STRUCTURE: Centering Logic */
section {
    padding: 80px 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the inner containers */
}

/* Background colors to separate sections */
#hero { background: #333; color: white; min-height: 90vh; }
#about { background: #fff; }
#portfolio { background: #f9f9f9; }
#contact { background: #fff; }

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    position: relative;
}
