:root {
    --bg-color: #121212;
    --card-bg-color: #1e1e1e;
    --text-color: #f5f5f5;
    --accent-color: #7289da;
    --secondary-color: #404eed;
    --hover-color: #5865f2;
    --muted-color: #888;
    --border-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeIn 1s ease;
}

.hero p {
    font-size: 1.2rem;
    color: var(--muted-color);
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeIn 1.2s ease;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 0;
}

.project-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.project-info p {
    color: var(--muted-color);
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--hover-color);
    color: white;
}

/* About Page */
.about-section {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.skills {
    margin-top: 30px;
}

.skills h3 {
    margin-bottom: 15px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: var(--card-bg-color);
    color: var(--accent-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* CV Page */
.cv-section {
    padding: 80px 0;
}

.cv-header {
    text-align: center;
    margin-bottom: 50px;
}

.cv-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cv-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.cv-section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--accent-color);
}

.cv-item {
    margin-bottom: 30px;
}

.cv-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cv-item-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.cv-item-subtitle {
    color: var(--accent-color);
    font-weight: 500;
}

.cv-item-date {
    color: var(--muted-color);
}

.cv-item-description {
    color: var(--muted-color);
}

.cv-download {
    text-align: center;
    margin-top: 50px;
}

/* Contact Page */
.contact-section {
    padding: 80px 0;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 500;
}

.form-control {
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg-color);
    color: var(--text-color);
    font-family: inherit;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Project Detail Page */
.project-detail {
    padding: 80px 0;
}

.project-header {
    text-align: center;
    margin-bottom: 50px;
}

.project-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.project-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.project-detail-image img {
    width: 100%;
    border-radius: 10px;
}

.project-detail-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-detail-description {
    line-height: 1.8;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tech-tag {
    background-color: var(--card-bg-color);
    color: var(--accent-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-links {
    display: flex;
    gap: 20px;
}

/* Footer */
footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--muted-color);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

.copyright {
    color: var(--muted-color);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-section,
    .contact-content,
    .project-detail-content,
    .cv-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--card-bg-color);
        padding: 20px;
        border-radius: 5px;
        z-index: 100;
        width: 200px;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
}

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content h2,
    .cv-header h2,
    .contact-header h2,
    .project-header h2 {
        font-size: 2rem;
    }
}
