/* 
   Sam W. Portfolio - Styles
   A clean, modern design for a personal portfolio website
*/

/* Base Styles and Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #284b63;
    --secondary-color: #3c6e71;
    --accent-color: #e74c3c;
    --light-color: #d9d9d9;
    --dark-color: #353535;
    --text-color: #333;
    --text-light: #777;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    transition: var(--transition);
    font-weight: 500;
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-large {
    padding: 12px 24px;
    font-size: 1.1rem;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

header .tagline {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Navigation Styles */
nav {
    background-color: var(--secondary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0 15px;
}

nav a {
    color: white;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 5px 10px;
    border-radius: 4px;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-profilepic {
    width: 250px;
    height: 250px;
    border-radius: 50%;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.profile-placeholder {
    width: 250px;
    height: 250px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
}

.profile-placeholder i {
    font-size: 100px;
    color: var(--text-light);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 150px;
    background-color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    border-radius: 6px;
}

.project-image i {
    font-size: 60px;
    color: var(--primary-color);
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.project-card p {
    margin-bottom: 15px;
    color: var(--text-light);
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tags span {
    background-color: var(--light-color);
    color: var(--text-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* CV Section */
.cv-content {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.cv-section {
    margin-bottom: 40px;
}

.cv-section h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 10px;
}

.cv-item {
    margin-bottom: 25px;
}

.cv-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.cv-item h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.cv-date {
    color: var(--text-light);
    font-weight: 500;
}

.cv-item p {
    margin-bottom: 8px;
}

.cv-item ul {
    padding-left: 20px;
    margin-top: 10px;
}

.cv-item li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.cv-item li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.skill-category h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.skill-category ul {
    padding-left: 20px;
}

.skill-category li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.skill-category li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.cv-download {
    text-align: center;
    margin-top: 40px;
}

/* Contact Section */
#contact {
    background-color: var(--light-color);
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .about-content {
        flex-direction: column-reverse;
    }
    
    .cv-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cv-date {
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    
    header .tagline {
        font-size: 1rem;
    }
    
    nav li {
        margin: 0 8px;
    }
    
    nav a {
        font-size: 1rem;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .project-card {
        padding: 15px;
    }
    
    .cv-content {
        padding: 20px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
