:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --background-color: #f9f9f9;
    --text-color: #333;
    --light-gray: #ecf0f1;
    --dark-gray: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    margin-top: 22px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
}

.contact-info a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-info i {
    font-size: 1.2rem;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    padding: 30px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.main-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

section {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
}

section h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.education-item,
.experience-item {
    margin-bottom: 20px;
}
a {
    color: var(--primary-color);
    text-decoration: none;
}

a:visited {
    color: var(--primary-color);
}

/* General link hover/focus/active styles */
a:hover,
a:active,
a:focus {
    color: var(--secondary-color); 
    text-decoration: none;
}

header a,
header a:visited {
    color: #fff;
    text-decoration: none;
}

header a:hover,
header a:active,
header a:focus {
    color: var(--secondary-color);
    text-decoration: none;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
}

.project-link:hover,
.project-link:active,
.project-link:focus {
    color: #e67e22; 
    text-decoration: none;
}
.education-item h3,
.experience-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.education-item p,
.experience-item p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.education-item .date,
.experience-item .date {
    font-weight: bold;
    color: var(--primary-color);
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.summary {
    font-style: italic;
    line-height: 1.7;
}

.experience-item ul {
    margin-left: 20px;
}

.experience-item li {
    margin-bottom: 8px;
}

.references {
    text-align: center;
    font-style: italic;
    color: var(--dark-gray);
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Dark theme */
body.dark-theme {
    --primary-color: #2980b9;
    --secondary-color: #bdc3c7;
    --background-color: #2c3e50;
    --text-color: #ecf0f1;
    --light-gray: #34495e;
    --dark-gray: #95a5a6;
}

body.dark-theme .container {
    background: #34495e;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

section:nth-child(1) {
    animation-delay: 0.1s;
}

section:nth-child(2) {
    animation-delay: 0.2s;
}

section:nth-child(3) {
    animation-delay: 0.3s;
}

section:nth-child(4) {
    animation-delay: 0.4s;
}

section:nth-child(5) {
    animation-delay: 0.5s;
}