/* 
 * Main Stylesheet for Colton Rogers Portfolio
 * Author: Colton Rogers
 * Version: 1.0
 */

/* ===== Variables ===== */
:root {
  /* Colors */
  --bg-primary: #0a192f;
  --bg-secondary: #112240;
  --text-primary: #ccd6f6;
  --text-secondary: #8892b0;
  --accent: #64ffda;
  --accent-hover: #64ffda80;
  
  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;
  
  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
  
  /* Border Radius */
  --border-radius: 4px;
}

/* ===== Base Styles ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-md) 0;
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin: 0 0 var(--space-md) 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

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

ul {
  list-style-type: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-main);
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

section {
  padding: var(--space-xxl) 0;
}

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-primary);
  z-index: 100;
  padding: var(--space-md) 0;
  box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-icon {
  width: 20px;
  height: 20px;
  fill: var(--text-primary);
  transition: var(--transition);
}

.social-icon:hover {
  fill: var(--accent);
  transform: translateY(-2px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* Account for fixed header */
}

.name {
  font-size: 4rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.title {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: var(--space-lg);
}

.cta-button {
  display: inline-block;
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--border-radius);
  padding: var(--space-sm) var(--space-lg);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
}

.cta-button:hover {
  background-color: rgba(100, 255, 218, 0.1);
  transform: translateY(-2px);
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
  margin-right: var(--space-md);
}

.cta-button.secondary:hover {
  background-color: rgba(204, 214, 246, 0.1);
  color: var(--text-primary);
}

/* ===== Section Styles ===== */
.section-heading-container {
  position: sticky;
  top: 100px;
}

.section-heading {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  position: relative;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent);
}

.section-content {
  color: var(--text-secondary);
}

/* ===== About Section ===== */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
}

.skill-category h4 {
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.skill-list li {
  margin-bottom: var(--space-xs);
  position: relative;
  padding-left: var(--space-md);
}

.skill-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ===== Experience Section ===== */
.experience-item {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--bg-secondary);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.company {
  font-size: 1.5rem;
  color: var(--text-primary);
}

.date {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.position {
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.experience-details {
  list-style-type: none;
  margin-bottom: var(--space-md);
}

.experience-details li {
  margin-bottom: var(--space-sm);
  position: relative;
  padding-left: var(--space-lg);
}

.experience-details li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.tag {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  font-size: 0.8rem;
}

/* ===== Projects Section ===== */
.project-filters {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.filter-btn {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: var(--space-xs) var(--space-md);
  font-size: 0.9rem;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--bg-secondary);
  color: var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.project-card {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.project-content {
  padding: var(--space-lg);
  flex-grow: 1;
}

.project-title {
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.project-card:hover .project-image img {
  transform: scale(1.05);
}

/* ===== Contact Section ===== */
.contact-intro {
  font-size: 1.2rem;
  margin-bottom: var(--space-xl);
}

.contact-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .contact-options {
    grid-template-columns: 1fr;
  }
}

.contact-form-container, .calendar-container {
  background-color: var(--bg-secondary);
  padding: var(--space-lg);
  border-radius: var(--border-radius);
}

.contact-form-container h3, .calendar-container h3 {
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: var(--space-sm);
  background-color: var(--bg-primary);
  border: 1px solid var(--text-secondary);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-family: var(--font-main);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.calendar-embed {
  margin-top: var(--space-lg);
}

.calendar-note {
  margin-top: var(--space-md);
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--bg-secondary);
  padding: var(--space-lg) 0;
  margin-top: var(--space-xxl);
}

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

.footer-info {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

@media (max-width: 576px) {
  .footer-content {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* ===== 404 Page ===== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.error-content {
  max-width: 600px;
}

.error-code {
  font-size: 8rem;
  color: var(--accent);
  margin-bottom: 0;
  line-height: 1;
}

.error-title {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.error-message {
  margin-bottom: var(--space-lg);
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

/* ===== Spotlight Effect ===== */
.spotlight-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(100, 255, 218, 0.05) 0%,
    transparent 25%
  );
}

/* ===== Utility Classes ===== */
.cta-container {
  margin-top: var(--space-xl);
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 992px) {
  .name {
    font-size: 3rem;
  }
  
  .title {
    font-size: 1.5rem;
  }
  
  .section-heading {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: var(--space-xl) 0;
  }
  
  .section-heading-container {
    position: static;
  }
  
  .name {
    font-size: 2.5rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .name {
    font-size: 2rem;
  }
  
  .title {
    font-size: 1.25rem;
  }
  
  .tagline {
    font-size: 1rem;
  }
} 