/* CSS Custom Properties for theming */
:root {
  --background: #2E3638;
  --foreground: #C7CED1;
  --primary-color: #171B1C;
  --secondary-color: #5F93D3;
  --accent-color: #F6C26F;
  --text-color: #E3E6E8;
  --border-radius: 8px;
  --transition-speed: 0.3s;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Dark mode support (if user prefers) */
@media (prefers-color-scheme: dark) {
  :root {
    /* Colors already optimized for dark mode */
  }
}

/* Base styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
  padding: 0;
  background-color: var(--background);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus styles for accessibility */
:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--accent-color);
  color: var(--background);
  padding: 8px;
  text-decoration: none;
  border-radius: var(--border-radius);
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #4a7bb8 100%);
  color: var(--text-color);
  padding: 3rem 0;
  text-align: center;
  box-shadow: var(--shadow);
}

header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header p {
  margin: 0;
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Main content */
main {
  padding: 3rem 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-color);
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Sections */
section {
  margin: 3rem 0;
}

/* Projects */
.project {
  background: var(--primary-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.project h3 {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.project h3 img {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
}

.project h3 span {
  font-size: 1.5rem;
  font-weight: 600;
}

.project img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin-top: 1.5rem;
  box-shadow: var(--shadow);
}

.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  color: var(--text-color);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: var(--accent-color);
  color: var(--background);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus {
  border-color: var(--accent-color);
}

/* Social links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.social-links a {
  color: var(--text-color);
  font-size: 2.5rem;
  transition: all var(--transition-speed) ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: var(--shadow);
}

.social-links a:hover {
  color: var(--accent-color);
  transform: translateY(-2px) scale(1.1);
  box-shadow: var(--shadow-hover);
}

/* Connect section */
.connect-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--primary-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.bmc-button {
  margin-top: 1.5rem;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #4a7bb8 100%);
  color: var(--text-color);
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

/* Skills section (if uncommented) */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.skill {
  background: var(--primary-color);
  color: var(--text-color);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-speed) ease;
}

.skill:hover {
  background: var(--accent-color);
  color: var(--background);
  transform: translateY(-1px);
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  header {
    padding: 2rem 0;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  header p {
    font-size: 1rem;
  }
  
  main {
    padding: 2rem 0;
  }
  
  .project {
    padding: 1.5rem;
  }
  
  .project h3 {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .project h3 img {
    width: 40px;
    height: 40px;
  }
  
  .project-links {
    flex-direction: column;
  }
  
  .btn {
    justify-content: center;
  }
  
  .social-links {
    gap: 1rem;
  }
  
  .social-links a {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  .container {
    padding: 0 10px;
  }
  
  header h1 {
    font-size: 1.75rem;
  }
  
  .project {
    padding: 1rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Print styles */
@media print {
  .btn,
  .social-links,
  .bmc-button {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  header,
  footer {
    background: #f0f0f0 !important;
    color: black !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --accent-color: #ffff00;
    --text-color: #ffffff;
    --background: #000000;
  }
} 