/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: #e0e0e0;
    background-color: #0d0d0d;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

h1, h2, p {
    margin: 0 0 15px;
}

a {
    color: #1da1f2;
    text-decoration: none;
}

a:hover {
    color: #00aaff;
    text-decoration: underline;
}

/* Header */
header {
    background: linear-gradient(135deg, #1c1c1c, #0d0d0d);
    padding: 80px 0;
    text-align: center;
    border-bottom: 3px solid #1da1f2;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
}

.subtitle {
    font-size: 1.3rem;
    color: #9a9a9a;
    font-weight: 300;
}

/* Navigation */
nav {
    background-color: #111;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #333;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px; /* Increased gap for 2 spaces */
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    font-size: 1.1rem;
    color: #e0e0e0;
    padding: 10px 15px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover {
    border-bottom: 2px solid #1da1f2;
    color: #1da1f2;
}

/* Active Link */
nav ul li a.active {
    border-bottom: 2px solid #1da1f2;
    color: #1da1f2;
}

/* Media Queries for Navigation */
@media (max-width: 768px) {
    nav ul {
        gap: 20px; /* Reduced gap for smaller screens */
    }

    nav ul li a {
        font-size: 1rem; /* Reduced font size for smaller screens */
    }
}

@media (max-width: 480px) {
    nav ul {
        gap: 10px; /* Further reduced gap for mobile screens */
    }

    nav ul li a {
        font-size: 0.9rem; /* Further reduced font size for mobile screens */
    }
}

/* Sections */
section {
    padding: 80px 0;
    text-align: center;
}

#about, #skills, #projects, #contact {
    background: #121212;
    margin-bottom: 20px;
    padding: 60px 0;
}

h2 {
    font-size: 2.5rem;
    color: #1da1f2;
    font-weight: 600;
    margin-bottom: 30px;
}

/* Skills */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.skill-card {
    background-color: #1c1c1c;
    color: #e0e0e0;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.7);
}

/* Projects Slider */
.projects-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 30px;
    background: #1c1c1c;
    border-radius: 15px;
    text-align: center;
    position: relative;
}

.slide h3 {
    font-size: 1.8rem;
    color: #1da1f2;
    font-weight: 600;
    margin-bottom: 15px;
}

.slide p {
    font-size: 1.1rem;
    color: #b3b3b3;
    margin-bottom: 20px;
}

.slide img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.slide a {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background-color: #1da1f2;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.slide a:hover {
    background-color: #00aaff;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(29, 161, 242, 0.8);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.8rem;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover, .next:hover {
    background-color: rgba(29, 161, 242, 1);
}

/* Contact Form */
.contact-form {
    max-width: 500px;
    margin: 20px auto;
    background: #1c1c1c;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.contact-form input, .contact-form textarea {
    width: 95%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #333;
    background: #0d0d0d;
    color: #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    background: #1da1f2;
    border: none;
    color: white;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #00aaff;
}

/* Footer */
footer {
    padding: 30px 0;
    background: #0d0d0d;
    color: #9a9a9a;
    text-align: center;
    font-size: 0.9rem;
}

/* Social Media */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-links a img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.social-links a:hover img {
    transform: scale(1.1);
}

/* Media Queries */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-slider {
        max-width: 100%;
    }

    .slide h3 {
        font-size: 1.5rem;
    }

    .slide p {
        font-size: 1rem;
    }

    .contact-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .slide h3 {
        font-size: 1.2rem;
    }

    .slide p {
        font-size: 0.9rem;
    }

    .contact-form input, .contact-form textarea {
        width: 90%;
    }
}