/* ============================================================================
   MAIN STYLESHEET - Berrie Development Portfolio
   Author: Kirstie Martinka
   Description: Custom styles for portfolio website
   ============================================================================ */

/* ============================================================================
   TABLE OF CONTENTS
   1. Global Styles & Variables
   2. Blog Post Links
   3. Hero Section
   4. CTA & Social Links Section
   5. Content Preview Section
   6. Animations & Keyframes
   7. Responsive Design
   ============================================================================ */

/* ============================================================================
   1. GLOBAL STYLES & VARIABLES
   ============================================================================ */

:root {
  --primary-dark: rgb(45, 42, 73);
  --primary-light: #c5c9f5;
  --white: #ffffff;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-md: 0 4px 15px rgba(0,0,0,0.2);
  --shadow-lg: 0 6px 25px rgba(0,0,0,0.3);
  --shadow-hover: 0 6px 20px rgba(0,0,0,0.2);
  --transition-base: all 0.3s ease;
}

/* ============================================================================
   2. BLOG LIST PAGE
   ============================================================================ */

.blog-list-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px;
}

.blog-list-header {
  text-align: center;
  margin-bottom: 60px;
}

.blog-list-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.blog-list-subtitle {
  font-size: 1.3rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

/* Blog Cards Container */
.blog-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* Blog Card */
.blog-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary-light);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-dark);
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.blog-card-title a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: var(--transition-base);
}

.blog-card-title a:hover {
  color: var(--primary-light);
}

.blog-card-description {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Blog Card Meta */
.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.blog-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #666;
}

.blog-meta-item svg {
  color: var(--primary-dark);
}

/* Read More Button */
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary-dark);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition-base);
  align-self: flex-start;
}

.blog-read-more:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateX(4px);
}

.blog-read-more svg {
  transition: var(--transition-base);
}

.blog-read-more:hover svg {
  transform: translateX(4px);
}

/* ============================================================================
   3. HERO SECTION
   ============================================================================ */

/* Hero Container */
.hero-section {
  min-height: 500px;
  position: relative;
  overflow: hidden;
  padding: 60px 20px;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

/* Headshot Styles */
.hero-left {
  flex: 0 0 auto;
}

.headshot-container {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.headshot-placeholder {
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
}

.headshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

/* Hero Text Content */
.hero-center {
  flex: 1 1 auto;
  color: var(--primary-dark);
  text-align: left;
  min-width: 300px;
}

.hero-greeting {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 0;
  letter-spacing: 1px;
}

.hero-name {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 10px 0 20px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Rotating Title Badge */
.hero-title-container {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 30px;
}

.hero-title-badge {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary-dark);
  background: var(--white);
  padding: 8px 20px;
  border-radius: 8px;
  display: inline-block;
  box-shadow: var(--shadow-sm);
  transition: all 0.6s ease-in-out;
  border: 2px solid var(--primary-dark);
}

.hero-title-badge .strawberry-icon {
  opacity: 0;
  display: inline-block;
  margin-left: 8px;
  transition: opacity 0.3s ease-in-out;
}

.hero-title-badge.active {
  background: var(--primary-dark);
  color: var(--white);
  border-color: var(--primary-dark);
  transform: scale(1.05);
}

.hero-title-badge.active .strawberry-icon {
  opacity: 1;
}

/* Legacy Social Links (if still used elsewhere) */
.social-links {
  display: flex;
  gap: 20px;
  margin-top: 25px;
}

.social-links a {
  transition: var(--transition-base);
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.social-links a:hover {
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* ============================================================================
   4. CTA & SOCIAL LINKS SECTION
   ============================================================================ */

/* Section Container */
.cta-social-section {
  background: var(--primary-dark);
  padding: 40px 20px;
}

.cta-social-container {
  max-width: 900px;
  margin: 0 auto;
  gap: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

/* Left Side - CTA Buttons Group */
.cta-buttons-group {
  border-right: 2px solid rgba(255, 255, 255, 0.3);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
}

/* Right Side - Social Links Group */
.social-links-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
}

/* Base Button Styles */
.cta-button {
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition-base);
  min-width: 220px;
  box-shadow: var(--shadow-md);
}

/* Primary CTA Button (View My Work) */
.cta-primary {
  background: var(--white);
  color: var(--primary-dark);
  border: 2px solid var(--white);
}

.cta-primary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Secondary CTA Button (Download Resume) */
.cta-secondary {
  background: var(--white);
  color: var(--primary-dark);
  border: 2px solid var(--white);
}

.cta-secondary:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Social Media Buttons (GitHub, LinkedIn) */
.cta-social {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 2px solid var(--primary-light);
  min-width: 180px;
}

.cta-social:hover {
  background: var(--white);
  color: var(--primary-dark);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Blog CTA Button */
.cta-blog {
  background: var(--primary-dark);
  color: var(--white);
  border: 2px solid var(--primary-dark);
}

.cta-blog:hover {
  background: var(--white);
  color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================================
   5. CONTENT PREVIEW SECTION
   ============================================================================ */

.content-preview {
  padding: 50px 20px 80px 20px !important;
  background: white;
}

.content-preview h3 {
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 15px;
}

.content-preview p {
  color: var(--primary-dark);
  font-size: 1.1rem;
  margin-bottom: 25px;
}

/* ============================================================================
   6. CONTACT PAGE
   ============================================================================ */

#contact-form {
  max-width: 900px;
  margin: 0 auto;
}

/* ============================================================================
   7. MY WORK PAGE
   ============================================================================ */

.my-work-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.my-work-header {
  text-align: center;
  margin-bottom: 60px;
}

.my-work-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.my-work-subtitle {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 30px;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--primary-dark);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition-base);
  box-shadow: var(--shadow-md);
}

.github-link:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Projects Container */
.projects-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Project Card */
.project-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--primary-light);
  transition: var(--transition-base);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  border-color: var(--primary-dark);
}

/* Project Header */
.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.project-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
}

.project-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-dark);
  color: var(--white);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Project Content */
.project-content {
  color: #333;
}

.project-description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 25px;
  color: #555;
}

/* Tech Badges */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.tech-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Project Links */
.project-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.project-link-primary {
  background: var(--primary-dark);
  color: var(--white);
  border: 2px solid var(--primary-dark);
}

.project-link-primary:hover {
  background: var(--white);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.project-link-secondary {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 2px solid var(--primary-light);
}

.project-link-secondary:hover {
  background: var(--primary-dark);
  color: var(--white);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================================================
   8. ANIMATIONS & KEYFRAMES
   ============================================================================ */

@keyframes fadeIn {
  0% { 
    opacity: 0; 
    transform: translateY(-10px); 
  }
  100% { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Legacy animation (kept for compatibility) */
@keyframes backgroundScroll {
  0% { background-position: 0 0, 30px 30px; }
  100% { background-position: 60px 60px, 90px 90px; }
}

/* ============================================================================
   9. RESPONSIVE DESIGN
   ============================================================================ */

/* Tablet & Below (992px) */
@media (max-width: 992px) {
  /* Hero Section Adjustments */
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-center {
    text-align: center;
  }
  
  .hero-name {
    font-size: 2.8rem;
  }
  
  .hero-greeting {
    font-size: 1.6rem;
  }
  
  .social-links {
    justify-content: center;
  }
  
  /* CTA Section Adjustments - Stack Vertically */
  .cta-social-container {
    flex-direction: column;
  }
  
  .cta-buttons-group {
    border-right: none;
    border-bottom: none;
    width: 100%;
    max-width: 400px;
  }
  
  .social-links-group {
    width: 100%;
    max-width: 400px;
  }

  /* My Work Page Adjustments */
  .my-work-header h1 {
    font-size: 2.5rem;
  }

  .project-card {
    padding: 30px;
  }

  .project-title {
    font-size: 1.7rem;
  }

  /* Blog List Page Adjustments */
  .blog-list-header h1 {
    font-size: 2.5rem;
  }

  .blog-cards-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
  }

  .blog-card {
    padding: 25px;
  }
}

/* Mobile (576px) */
@media (max-width: 576px) {
  /* Hero Section Mobile Adjustments */
  .hero-section {
    padding: 40px 15px;
  }
  
  .headshot-container {
    width: 180px;
    height: 180px;
  }
  
  .hero-name {
    font-size: 2.2rem;
  }
  
  .hero-greeting {
    font-size: 1.4rem;
  }
  
  .hero-title-rotating {
    font-size: 1.4rem;
  }
  
  /* Center the title badges on mobile */
  .hero-title-container {
    justify-content: center;
  }
  
  /* Full-width buttons on mobile */
  .cta-button {
    min-width: 100%;
  }

  /* My Work Page Mobile Adjustments */
  .my-work-main {
    padding: 40px 15px;
  }

  .my-work-header h1 {
    font-size: 2rem;
  }

  .my-work-subtitle {
    font-size: 1.1rem;
  }

  .project-card {
    padding: 20px;
  }

  .project-title {
    font-size: 1.5rem;
  }

  .project-description {
    font-size: 1rem;
  }

  .project-links {
    flex-direction: column;
  }

  .project-link {
    width: 100%;
    justify-content: center;
  }

  /* Blog List Page Mobile Adjustments */
  .blog-list-main {
    padding: 40px 15px;
  }

  .blog-list-header h1 {
    font-size: 2rem;
  }

  .blog-list-subtitle {
    font-size: 1.1rem;
  }

  .blog-cards-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-card {
    padding: 20px;
  }

  .blog-card-title {
    font-size: 1.3rem;
  }
}

/* ============================================================================
   END OF STYLESHEET
   ============================================================================ */