/* ============================================
   Modern Resume Portfolio - Thomas Traxler
   ============================================ */

/* CSS Variables for easy theme customization */
:root {
  /* Colors - Updated to Blue Theme */
  --primary: #1e88e5;
  --primary-dark: #1565c0;
  --secondary: #0d47a1;
  --accent: #00bcd4;
  --dark: #1a202c;
  --gray-900: #1a202c;
  --gray-800: #2d3748;
  --gray-700: #4a5568;
  --gray-600: #718096;
  --gray-500: #a0aec0;
  --gray-400: #cbd5e0;
  --gray-300: #e2e8f0;
  --gray-200: #edf2f7;
  --gray-100: #f7fafc;
  --white: #ffffff;

  /* Gradients - Blue Theme */
  --gradient-primary: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
  --gradient-accent: linear-gradient(135deg, #1e88e5 0%, #00bcd4 100%);

  /* Spacing - Reduced padding */
  --container-width: 1200px;
  --section-padding: 50px;

  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition: all 0.3s ease;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* ============================================
   Container & Layout
   ============================================ */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: var(--section-padding) 0;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-brand h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link-cta {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 10px 25px;
  border-radius: 25px;
}

.nav-link-cta::after {
  display: none;
}

.nav-link-cta:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--gray-700);
  border-radius: 3px;
  transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  background: var(--gradient-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  z-index: 1;
}

.hero-text {
  color: var(--white);
}

.hero-greeting {
  display: block;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
  opacity: 0.9;
}

.hero-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  opacity: 0.95;
}

.hero-description {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.employment-status {
  margin-top: 30px;
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  display: inline-block;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.employment-status p {
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.employment-status i {
  font-size: 16px;
}

.hero-scroll {
  margin-top: 40px;
  text-align: center;
}

.hero-scroll a {
  color: var(--white);
  font-size: 24px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.hero-image {
  position: relative;
}

.image-container {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 10px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-xl);
}

.image-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--white);
  color: var(--primary);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-small {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ============================================
   Section Headers
   ============================================ */

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-tag {
  display: inline-block;
  padding: 8px 20px;
  background: var(--gray-100);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 20px;
  margin-bottom: 15px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   About Section
   ============================================ */

.about {
  background: var(--white);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text .lead {
  font-size: 20px;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 40px;
}

.highlights {
  display: grid;
  gap: 15px;
  margin-bottom: 25px;
}

.highlight-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 15px;
  background: var(--gray-50);
  border-radius: 10px;
  transition: var(--transition);
}

.highlight-item:hover {
  background: var(--gray-100);
  transform: translateX(10px);
}

.highlight-item i {
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.highlight-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.highlight-item p {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.5;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 35px;
  text-align: center;
}

.stat h3 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.stat p {
  font-size: 16px;
  color: var(--gray-600);
  font-weight: 500;
}

/* ============================================
   Skills Section
   ============================================ */

.skills {
  background: var(--gray-50);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 800px;
  margin: 0 auto;
}

.skill-category {
  background: var(--white);
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.skill-category.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.skill-category:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.skill-icon {
  width: 55px;
  height: 55px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.skill-icon i {
  font-size: 26px;
  color: var(--white);
}

.skill-category h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.skill-category ul li {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 15px;
  color: var(--gray-700);
  position: relative;
  padding-left: 25px;
}

.skill-category ul li:last-child {
  border-bottom: none;
}

.skill-category ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* ============================================
   Experience Section
   ============================================ */

.experience {
  background: var(--white);
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateX(-30px);
  transition: var(--transition);
}

.timeline-item.fade-in {
  opacity: 1;
  transform: translateX(0);
}

.timeline-marker {
  position: absolute;
  left: -46px;
  top: 0;
  width: 15px;
  height: 15px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 4px var(--gray-200);
}

.timeline-content {
  background: var(--white);
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.timeline-content:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(10px);
}

.timeline-date {
  display: inline-block;
  padding: 6px 15px;
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 15px;
}

.timeline-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 5px;
}

.timeline-content h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 15px;
}

.timeline-list {
  margin: 20px 0;
}

.timeline-list li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: var(--gray-700);
  line-height: 1.6;
}

.timeline-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tag {
  padding: 6px 15px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 500;
  border-radius: 15px;
  transition: var(--transition);
}

.tag:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================
   Education Section
   ============================================ */

.education {
  background: var(--gray-50);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.education-card {
  background: var(--white);
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  opacity: 0;
  transform: scale(0.9);
}

.education-card.fade-in {
  opacity: 1;
  transform: scale(1);
}

.education-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.education-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.education-icon i {
  font-size: 28px;
  color: var(--white);
}

.education-date {
  display: inline-block;
  padding: 6px 15px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 600;
  border-radius: 15px;
  margin-bottom: 15px;
}

.education-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.education-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 15px;
}

.education-school {
  font-size: 15px;
  color: var(--gray-600);
  margin: 0;
}

/* ============================================
   Certifications Section
   ============================================ */

.certifications {
  background: var(--white);
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.cert-card {
  background: var(--white);
  padding: 25px 20px;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  text-align: center;
  transition: var(--transition);
  opacity: 0;
  transform: scale(0.9);
}

.cert-card.fade-in {
  opacity: 1;
  transform: scale(1);
}

.cert-card:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.cert-badge {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: var(--shadow-md);
}

.cert-badge i {
  font-size: 28px;
  color: var(--white);
}

.cert-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.cert-date {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 15px;
}

.cert-description {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 40px 0 25px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-brand h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--gray-400);
}

.footer-links h4,
.footer-download h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--gray-400);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid var(--gray-700);
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--gray-500);
  margin: 0;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 992px) {
  :root {
    --section-padding: 40px;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-name {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .hero-cta {
    justify-content: center;
  }

  .image-container {
    width: 300px;
    height: 300px;
  }

  .section-title {
    font-size: 36px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline-marker {
    left: -36px;
  }
}

@media (max-width: 768px) {
  .hero-name {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-description {
    font-size: 16px;
  }

  .section-title {
    font-size: 30px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .education-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .certifications-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section-title {
    font-size: 26px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .image-container {
    width: 250px;
    height: 250px;
  }

  .timeline {
    padding-left: 20px;
  }

  .timeline-marker {
    left: -28px;
    width: 12px;
    height: 12px;
  }

  .timeline-content {
    padding: 20px;
  }
}

/* ============================================
   Animations & Utilities
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Print Styles */
@media print {
  .navbar,
  .hero-scroll,
  .footer {
    display: none;
  }

  body {
    color: #000;
  }

  .hero {
    min-height: auto;
    padding: 20px 0;
  }

  section {
    padding: 20px 0;
    page-break-inside: avoid;
  }
}
