/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header */
header {
    background-color: transparent;
    color: #fff;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001; /* Ensure it's above the particles */
    text-align: center;
    transition: background-color 0.3s;
}

header.scrolled {
    background-color: #0d1b2a;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

nav .logo {
    font-weight: 700;
    font-size: 1.5em;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #f4a261;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(120deg, #0a192f, #112240, #1b263b, #0d1b2a);
    background-size: 300% 300%;
    animation: gradientBG 10s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.hero-content h1 {
    font-size: 4em;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2em;
    margin-top: 10px;
}

.hero-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 2;
}

.hero-icons a {
    color: #fff;
    font-size: 2em;
    transition: transform 0.3s;
}

.hero-icons a img {
    width: 30px; /* Adjust size as needed */
}

.hero-icons a:hover {
    transform: scale(1.2);
}

.down-arrow {
    position: absolute;
    bottom: 20px;
    font-size: 2em;
    cursor: pointer;
    color: #fff;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-10px); }
}

/* About Section */
.about {
    padding: 100px 20px;
    text-align: left;
    background: #0d1b2a;
    color: #fff;
    animation: slideInUp 1.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    flex-wrap: wrap;
}

.about-img {
    max-width: 200px;
    border-radius: 10%;
    margin-right: 2em;
    margin-bottom: 2em;
}

.about h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
}

.about p {
    max-width: 600px;
    font-size: 1em;
    line-height: 1.8;
}

.contact-details {
    margin-top: 20px;
    text-align: left;
}

.contact-details p {
    margin: 5px 0;
}

.resume-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.2em;
    color: #fff;
    background-color: #555;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    margin-left: 20px;
}

.resume-button:hover {
    background-color: #777;
    transform: scale(1.05);
}

.resume-button img {
    width: 20px; /* Adjust size as needed */
    margin-right: 10px;
    vertical-align: middle;
}

/* Works Section */
.works {
    padding: 100px 20px;
    text-align: center;
    background: #f4f4f9;
    animation: slideInUp 1.5s;
}

.works h2 {
    margin-bottom: 20px;
    font-size: 2em;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.gallery-item {
    max-width: 300px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto;
}

.gallery-item p {
    margin-top: 10px;
    font-size: 1em;
    color: #333;
    text-decoration: none;
}

/* Skills Section */
.skills {
    padding: 100px 20px;
    text-align: center;
    background: #fff;
    animation: slideInUp 1.5s;
}

.skills h2 {
    margin-bottom: 20px;
    font-size: 2em;
}

.skills-chart {
    max-width: 800px;
    margin: 0 auto;
}

.skill {
    margin-bottom: 20px;
    text-align: left;
}

.skill span {
    font-size: 1.2em;
    margin-bottom: 5px;
    display: block;
}

.progress-bar {
    background-color: #ddd;
    border-radius: 20px;
    overflow: hidden;
    height: 20px;
}

.progress {
    background-color: #0d1b2a;
    height: 100%;
    border-radius: 20px;
    transition: width 0.3s;
}

/* Contact Section */
.contact {
    padding: 100px 20px;
    text-align: center;
    background: #333;
    color: #fff;
    animation: slideInUp 1.5s;
}

.contact h2 {
    margin-bottom: 20px;
    font-size: 2em;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

form label, form input, form textarea, form button {
    width: 100%;
    max-width: 400px;
    margin-bottom: 10px;
}

form input, form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s;
}

form input:focus, form textarea:focus {
    border-color: #555;
}

form button {
    padding: 10px 20px;
    border: none;
    background-color: #f4a261;
    color: #333;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

form button:hover {
    background-color: #e89c4b;
    transform: scale(1.05);
}

#word-count {
    color: #fff;
    font-size: 0.9em;
    margin-bottom: 10px;
    opacity: 0.8;
}

@keyframes slideInUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Footer */
footer {
    background-color: #222; /* Darker background */
    color: #fff;
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 2s;
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #f4a261;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: transform 0.3s;
}

#back-to-top:hover {
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}