/*
Theme Name: Timothy Kotowski Personal
Theme URI: https://example.com/timothy-theme
Author: Timothy Kotowski
Author URI: https://example.com
Description: Elegant, minimalist styling for personal portfolio: About, Services, Portfolio, Research, Contact.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: timothy-theme
Tags: minimalist, one-column, two-columns, custom-menu, responsive-layout
*/

/* 1. Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.5;
}

body {
  font-family: "Inter", Helvetica Neue, Arial, sans-serif;
  color: #333333;
  background-color: #fafafa;
}

a {
  color: #0073aa;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #005177;
}

/* 2. Layout Containers */
.container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* 3. Header */
header {
  background: #ffffff;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e1e1e1;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-branding {
  text-align: center;
  margin-bottom: 1rem;
}

.site-title {
  font-family: "Merriweather", serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #111111;
}

.site-description {
  font-size: 0.9rem;
  color: #555555;
  margin-top: 0.25rem;
}

nav {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333333;
  letter-spacing: 0.5px;
  padding: 0.25rem 0;
  position: relative;
}

nav ul li a::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: #0073aa;
  transition: width 0.25s ease;
  position: absolute;
  bottom: -4px;
  left: 0;
}

nav ul li a:hover::after {
  width: 100%;
}

/* 4. Hero (Front Page only) */
.hero {
  background: #ffffff;
  text-align: center;
  padding: 4rem 0 6rem;
}

.hero h1 {
  font-family: "Merriweather", serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.1rem;
  color: #555555;
}

/* 5. Section Titles */
.section-title {
  font-family: "Merriweather", serif;
  font-size: 1.875rem;
  margin-bottom: 1rem;
  color: #111111;
  border-bottom: 1px solid #e1e1e1;
  padding-bottom: 0.5rem;
}

/* 6. Content Areas */
.main-content {
  background: #ffffff;
  padding: 3rem 0;
}

/* 7. About Section */
.about-content {
  margin-bottom: 3rem;
}

.about-content p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #444444;
}

/* 8. Services Grid */
.services-content {
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.service-box {
  background: #fafafa;
  padding: 1.5rem;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  text-align: center;
  transition: box-shadow 0.2s ease;
}

.service-box:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-box h3 {
  font-family: "Merriweather", serif;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #111111;
}

.service-box p {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 1rem;
}

.service-box a {
  font-weight: 600;
  font-size: 0.9rem;
  color: #0073aa;
}

/* 9. Portfolio Grid */
.portfolio-content {
  margin-bottom: 3rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.portfolio-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.portfolio-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item .portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item .portfolio-overlay a {
  color: #ffffff;
  font-family: "Merriweather", serif;
  font-size: 1.125rem;
  font-weight: 600;
}

/* 10. Research/Publications List */
.research-content {
  margin-bottom: 3rem;
}

.publication-list {
  list-style: none;
  margin-top: 1.5rem;
}

.publication-list li {
  padding: 1rem 0;
  border-bottom: 1px solid #e1e1e1;
}

.publication-list li h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  font-family: "Merriweather", serif;
}

.publication-list li p {
  font-size: 0.95rem;
  color: #555555;
}

/* 11. Contact Form */
.contact-content {
  margin-bottom: 3rem;
}

.contact-form-wrapper {
  max-width: 500px;
  margin: 0 auto;
}

.contact-form-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form-wrapper label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333333;
}

.contact-form-wrapper input,
.contact-form-wrapper select,
.contact-form-wrapper textarea {
  font-size: 1rem;
  padding: 0.75rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background: #ffffff;
}

.contact-form-wrapper input[type="submit"] {
  background: #0073aa;
  color: #ffffff;
  border: none;
  padding: 0.85rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form-wrapper input[type="submit"]:hover {
  background: #005177;
}

/* 12. Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  background: #ffffff;
  border-top: 1px solid #e1e1e1;
  font-size: 0.875rem;
  color: #777777;
}

/* 13. Responsive Adjustments */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .hero {
    padding: 3rem 0 4rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
}