/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f6fa;
    color: #2c3e50;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: #1f2a44;
    color: #dcdcdc;
}

/* Navigation */
#navbar {
    background-color: #2c3e50;
    position: sticky;
    top: 0;
    width: 100%;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background-color 0.3s;
}

#navbar .logo {
    color: white;
    font-size: 1.5em;
    font-weight: bold;
}

#navbar ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

#navbar ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    transition: color 0.3s, transform 0.3s;
}

#navbar ul li a:hover {
    color: #3498db;
    transform: scale(1.1);
}

/* Sections */
section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Home */
#home {
    height: 100vh;
    background: linear-gradient(135deg, #3498db, #8e44ad);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.home-content h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
}

.home-content p {
    font-size: 1.5em;
}

#typed-text {
    color: #ffd700;
    font-weight: bold;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #3498db;
    transform: translateY(-3px);
}

/* About */
h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #2c3e50;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.stats div {
    font-size: 1.2em;
}

.stats span {
    display: block;
    font-size: 2em;
    color: #3498db;
}

/* Projects */
.filter-buttons {
    margin-bottom: 30px;
}

.filter-buttons button {
    padding: 10px 20px;
    margin: 0 5px;
    background-color: #ecf0f1;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.filter-buttons button.active, .filter-buttons button:hover {
    background-color: #3498db;
    color: white;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.project {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: opacity 0.3s, transform 0.3s;
}

.project.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.project h3 {
    margin-bottom: 10px;
}

.project a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

/* Skills */
.skills-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.skill {
    margin-bottom: 20px;
}

.skill span {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.progress-bar {
    background-color: #ecf0f1;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar div {
    height: 100%;
    background-color: #3498db;
    width: 0;
    transition: width 1s ease-in-out;
}

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

input, textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

button {
    padding: 15px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #3498db;
}

#form-message {
    margin-top: 15px;
    font-weight: bold;
}

/* Dark Mode Button */
#dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px;
    background: none;
    border: none;
    font-size: 1.5em;
    color: #2c3e50;
    cursor: pointer;
    transition: color 0.3s;
}

body.dark-mode #dark-mode-toggle {
    color: #ffd700;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
}

.social-links a {
    color: white;
    margin: 0 10px;
    font-size: 1.5em;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #3498db;
}

/* Responsive */
@media (max-width: 768px) {
    #navbar {
        flex-direction: column;
        padding: 10px;
    }
    #navbar ul {
        margin-top: 10px;
        flex-direction: column;
        gap: 15px;
    }
    .home-content h1 {
        font-size: 2.5em;
    }
    .stats {
        flex-direction: column;
        gap: 15px;
    }
}