/* ============================================
   RYAN HEUER PORTFOLIO - GLOBAL STYLESHEET
   ============================================ */

/* === RESET & BASE === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === ACCESSIBILITY === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* === LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  flex: 1;
}

/* === NAVIGATION === */
.site-nav {
  background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
}

.logo span {
  color: #3498db;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #3498db;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3498db;
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: #3498db;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid #3498db;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: transparent;
  color: #3498db;
}

.btn-outline:hover {
  background: #3498db;
  color: #fff;
}

.btn-gradient {
  background: linear-gradient(45deg, #3498db, #2c3e50);
  border: none;
}

.btn-gradient:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

/* === SECTION TITLES === */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #2c3e50;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, #3498db, #2c3e50);
  border-radius: 2px;
}

/* === HERO (INDEX) === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.85)),
    url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-4.0.3&auto=format&fit=crop&w=1500&q=80') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 100px 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 30px;
  border: 5px solid #3498db;
  background: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: #3498db;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  animation: fadeInUp 1.5s ease;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  animation: fadeInUp 2s ease;
}

/* === PAGE HERO (INNER PAGES) === */
.page-hero {
  padding: 100px 0 50px;
  background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
  color: #fff;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* === PROJECT CARDS === */
.projects-section {
  padding: 100px 0;
  background: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.project-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
  height: 200px;
  background: linear-gradient(45deg, #3498db, #2c3e50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  padding: 25px;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #1a2530;
}

.project-content p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.project-tag {
  padding: 5px 12px;
  background: #e9ecef;
  color: #495057;
  border-radius: 15px;
  font-size: 0.8rem;
}

.project-links {
  display: flex;
  gap: 10px;
}

.project-link {
  display: inline-block;
  padding: 8px 15px;
  background: #3498db;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.3s;
}

.project-link:hover {
  background: #2c3e50;
}

.project-link.outline {
  background: transparent;
  border: 1px solid #3498db;
  color: #3498db;
}

.project-link.outline:hover {
  background: #3498db;
  color: #fff;
}

/* === PROJECT FILTERS === */
.projects-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 40px 0;
  padding: 0 20px;
}

.filter-btn {
  padding: 10px 20px;
  background: #e9ecef;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.filter-btn:hover {
  background: #dee2e6;
}

.filter-btn.active {
  background: #3498db;
  color: #fff;
}

/* === SEE MORE === */
.see-more {
  text-align: center;
  margin-top: 50px;
}

.see-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  background: transparent;
  color: #3498db;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid #3498db;
}

.see-more-btn:hover {
  background: #3498db;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* === SKILLS (INDEX) === */
.skills-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
  color: #fff;
}

.skills-section .section-title {
  color: #fff;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.skill-category-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.skill-category-card i {
  font-size: 3rem;
  color: #3498db;
  margin-bottom: 20px;
}

.skill-category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.skill-item {
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: transform 0.3s, background 0.3s;
}

.skill-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.3);
}

/* === ABOUT PAGE === */
.about-section {
  padding: 100px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skills-container {
  background: linear-gradient(135deg, #3498db, #2c3e50);
  border-radius: 20px;
  padding: 30px;
  color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.skills-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
}

.skill-category {
  margin-bottom: 25px;
}

.skill-category h3,
.skill-category h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #555;
  line-height: 1.8;
}

.about-text strong {
  color: #2c3e50;
  font-weight: 600;
}

/* === TIMELINE === */
.timeline {
  margin-top: 4rem;
}

.timeline-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 4px;
  background: #3498db;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
  color: #3498db;
  margin-bottom: 10px;
}

.timeline-content p {
  color: #555;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #3498db;
  border: 4px solid white;
  border-radius: 50%;
  top: 20px;
  z-index: 1;
}

.timeline-item:nth-child(odd)::after {
  right: -10px;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

/* === CONTACT PAGE === */
.contact-section {
  padding: 100px 0;
  flex: 1;
}

.contact-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
  color: #666;
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
}

.contact-form h3 {
  text-align: center;
  margin-bottom: 25px;
  color: #2c3e50;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #2c3e50;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

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

.form-status {
  margin-top: 20px;
  padding: 15px;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: translateY(10px);
  display: none;
}

.form-status.success, 
.form-status.error {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.form-status.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-status.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-status.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

/* === EXCUSE / DEVELOPMENT PAGE === */
.development-content {
  padding: 60px 0;
  text-align: center;
}

.development-icon {
  font-size: 5rem;
  color: #3498db;
  margin-bottom: 30px;
}

.development-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

.development-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #666;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === PROJECT DETAIL PAGE === */
.project-detail {
  padding: 80px 0;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  padding: 8px 16px;
  background: #e9ecef;
  color: #495057;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
  font-weight: 500;
}

.back-button:hover {
  background: #dee2e6;
}

.project-header {
  margin-bottom: 40px;
}

.project-header h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 15px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
}

.meta-item i {
  color: #3498db;
}

.project-body {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
}

.project-description {
  line-height: 1.8;
}

.project-description h2 {
  margin: 30px 0 15px;
  color: #2c3e50;
  font-size: 1.8rem;
}

.project-description p {
  margin-bottom: 15px;
  color: #555;
}

.project-description ul,
.project-description ol {
  margin: 15px 0;
  padding-left: 25px;
  color: #555;
}

.project-description li {
  margin-bottom: 8px;
}

.project-sidebar {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.sidebar-section {
  margin-bottom: 30px;
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-section h3 {
  margin-bottom: 15px;
  color: #2c3e50;
  padding-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Project gallery */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 30px 0;
}

.gallery-item {
  background: linear-gradient(45deg, #3498db20, #2c3e5020);
  border: 2px dashed #3498db;
  border-radius: 10px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: #3498db;
  font-weight: 500;
  transition: background 0.3s;
}

.gallery-item:hover {
  background: linear-gradient(45deg, #3498db30, #2c3e5030);
}

.gallery-item i {
  font-size: 2rem;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.gallery-item.full-width {
  grid-column: 1 / -1;
  min-height: 300px;
}

/* === FOOTER === */
.site-footer {
  background: #1a2530;
  color: #fff;
  text-align: center;
  padding: 30px 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.social-links a {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
  color: #3498db;
  transform: translateY(-3px);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.6s ease;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .project-body {
    grid-template-columns: 1fr;
  }

  .project-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
    margin-left: 0;
  }

  .nav-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 10px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

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

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .timeline-container::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item:nth-child(odd)::after,
  .timeline-item:nth-child(even)::after {
    left: 21px;
  }

  .development-content h1 {
    font-size: 2rem;
  }

  .development-icon {
    font-size: 4rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

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

  .container {
    padding: 0 15px;
  }
}
