:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-color: #111827;
    --background-color: #f3f4f6;
    --card-background: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
}

main {
    margin-top: 60px;
}

section {
    padding: 5rem 2rem;
}

h1, h2, h3 {
    color: var(--primary-color);
}

.hero {
    height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    z-index: 2;
    color: white;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: white;
}

.hero h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

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

#about {
    background-color: white;
    text-align: center;
}

#about p {
    max-width: 800px;
    margin: 2rem auto;
}

.cta-buttons {
    margin-top: 2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 3rem;
}

.skill-category {
    width: calc(33.333% - 1rem);
    margin-bottom: 2rem;
}

.skill-category h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.skill {
    margin-bottom: 1rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.skill-bar {
    height: 10px;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.skill-bar::before {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background-color: var(--secondary-color);
    transition: width 1s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

#contact {
    background-color: white;
}

#contact form {
    display: grid;
    gap: 1rem;
    max-width: 500px;
    margin: 3rem auto 0;
}

.form-control {
    position: relative;
}

#contact input, #contact textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

input.error, textarea.error {
    border-color: #e74c3c;
}

.social-links {
    margin-top: 3rem;
    text-align: center;
}

.social-links a {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.notification.success {
    background-color: #2ecc71;
}

.notification.error {
    background-color: #e74c3c;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .skill-category {
        width: 100%;
    }

    .project-card {
        width: 100%;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in;
}