/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

}

body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: #111;
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
}

.nav-list li {
    margin: 0 20px;
}

.nav-list a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: #ff6f61;
}

/* Header */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    background: #2a2a2a;
    position: relative;
    overflow: hidden;
    padding-bottom: 80px; /* Adds space above the wave */
    padding-top: 40px; /* Centers content better by adding padding at the top */
}

.header h1 {
    font-size: 3rem;
    color: #ff6f61;
    margin-bottom: 10px;
}

.sub-heading {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 20px;
}

.scrolling-text {
    position: relative;
    height: 2rem;
    font-size: 1.5rem;
    color: #ff6f61;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.scrolling-text span {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.scrolling-text span.active {
    opacity: 1;
}

.cta-button {
    display: inline-block;
    margin-top: 20px;
    background: #ff6f61;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #e65551;
}

/* Wave */
.wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* Sections */
.section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: auto;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about p {
    text-align: center;
    font-size: 1.2rem;
    color: #ccc;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 20px;
    text-align: center;
}

.skill {
    background: #333;
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.portfolio-item {
    background: #333;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s;
}

.portfolio-item:hover {
    transform: scale(1.05);
}

/* Contact */
.contact-button {
    display: inline-block;
    background: #ff6f61;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    transition: background 0.3s;
}

.contact-button:hover {
    background: #e65551;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: #e0e0e0;
    font-size: 0.9rem;
}