/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Horizontally scrollable nav header */
nav.scroll-header {
    display: flex;
    align-items: center;
    background: #4facfe;
    padding: 15px 0 15px 30px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    color: white;
}

nav.scroll-header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 16px;
    flex-shrink: 0;
}

nav.scroll-header .horizontal-scroll {
    overflow-x: auto;
    white-space: nowrap;
    flex: 1 1 auto;
    scrollbar-width: none;
}

nav.scroll-header .horizontal-scroll::-webkit-scrollbar {
    display: none;
}

nav.scroll-header ul {
    display: inline-flex;
    list-style: none;
    white-space: nowrap;
    padding-right: 30px;
}

nav.scroll-header ul li {
    margin-left: 20px;
}

nav.scroll-header ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 16px;
    border-radius: 999px;
    display: inline-block;
    font-size: 1rem;
}

nav.scroll-header ul li a.active,
nav.scroll-header ul li a:hover {
    color: #ffd700;
    background: rgba(255,255,255,0.12);
}

@media (max-width: 700px) {
    nav.scroll-header .logo {
        font-size: 1.2rem;
        margin-right: 8px;
    }
    nav.scroll-header ul li {
        margin-left: 10px;
    }
    nav.scroll-header ul li a {
        font-size: 0.92rem;
        padding: 7px 12px;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn {
    padding: 12px 25px;
    background: white;
    color: #4facfe;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn:hover {
    background: #4facfe;
    color: white;
}

/* Sections */
section {
    padding: 100px 20px;
    text-align: center;
}

#projects .project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.project-card {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: scale(1.05);
}

/* Contact Form */
form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

form input, form textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

form button {
    border: none;
    cursor: pointer;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #777;
}

/* Existing scrollable-top section */
.scrollable-top {
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px;
  background-color: #111;
  border-bottom: 1px solid #333;
  scrollbar-width: none; /* Firefox */
}

.scrollable-top::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.scroll-item {
  display: inline-block;
  background-color: #222;
  color: #fff;
  padding: 8px 16px;
  margin: 0 8px 0 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.3s;
}

.scroll-item:hover {
  background-color: #444;
  cursor: pointer;
}
