/*
 * Main Stylesheet for Alp Efe Karalar's Personal Website
 * Created: May 2025
 */

/* Variables */
:root {
    --primary: #1E407C; /* Penn State Blue */
    --secondary: #FFFFFF;
    --accent: #FFB81C; /* Penn State Gold */
    --text: #333333;
    --background: #f5f5f5;
    --card-bg: #ffffff;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: var(--primary);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Header Styles */
header {
    background-color: var(--primary);
    color: var(--secondary);
    padding: 2rem 0;
    text-align: center;
    position: relative;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.profile-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    object-fit: cover;
    background-color: #ddd; /* Placeholder */
}

.tagline {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

/* Navigation */
nav {
    background-color: var(--primary);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
}

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

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 48px;
    height: 48px;
    background-color: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    transition: transform 0.3s, background-color 0.3s;
}
/* Fix for oversized GitHub and Devpost icons */
/*.social-links a img[alt="GH"],
//.social-links a img[alt="DP"] {
//      width: 12px;  /* Adjust this value as needed */
/*        height: 12px; /* Adjust this value as needed */
/*    }*/

.social-links a:hover {
    transform: scale(1.1);
    background-color: var(--secondary);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 3rem;
    scroll-margin-top: 5rem; /* For smooth scrolling to anchors */
}

/* Card Styles */
.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background-color: var(--primary);
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Timeline for Experience */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary);
    top: 0;
    bottom: 0;
    left: 0;
}

.timeline-item {
    margin-bottom: 2rem;
    padding-left: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 2px solid var(--primary);
    left: -8px;
    top: 5px;
}

.timeline-date {
    font-weight: 600;
    color: var(--primary);
}

.timeline-title {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.timeline-company {
    font-style: italic;
    margin-bottom: 0.5rem;
}

/* Projects Section */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #ddd; /* Placeholder */
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.project-tag {
    background-color: var(--primary);
    color: var(--secondary);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Blog Section */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: #ddd; /* Placeholder */
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.blog-title {
    font-size: 1.3rem;
    margin: 0.5rem 0;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: var(--secondary);
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--accent);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary);
    color: var(--secondary);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: var(--accent);
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--secondary);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

.footer-links a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Media Queries */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    nav ul li {
        margin: 0;
    }

    .projects-container,
    .blog-posts {
        grid-template-columns: 1fr;
    }
}
