/* Modern Portfolio Styles */
:root {
  --primary-color: #33C3F0;
  --primary-hover: #1EAEDB;
  --text-color: #222;
  --text-light: #666;
  --border-color: #eee;
  --bg-light: #f9f9f9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Raleway", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 300;
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (min-width: 768px) {
  h1 { font-size: 4rem; }
  h2 { font-size: 3rem; }
  h3 { font-size: 2.5rem; }
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Buttons */
.button {
  display: inline-block;
  padding: 12px 24px;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.button:hover {
  background: var(--primary-color);
  color: #fff;
}

.button-primary {
  background: var(--primary-color);
  color: #fff;
}

.button-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* Project Page Styles */
.project-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.project-header h2 {
  margin-bottom: 0.5rem;
}

.project-header h5 {
  color: var(--text-light);
  font-weight: 400;
  margin-bottom: 1rem;
}

.project-header p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

.project-section {
  margin: 3rem 0;
}

.project-section img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-section img:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.project-section h5 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.project-section p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Long Screenshot Container - Apple-style scrolling */
.long-screenshot-container {
  position: relative;
  width: 60%;
  max-width: 400px;
  height: 85vh;
  max-height: 800px;
  min-height: 600px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: #f5f5f5;
}

/* Scrollable wrapper inside container */
.long-screenshot-wrapper {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.long-screenshot-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.long-screenshot-wrapper::-webkit-scrollbar {
  width: 6px;
}

.long-screenshot-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.long-screenshot-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.long-screenshot-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5);
}

/* Back Button */
.back-button {
  text-align: center;
  margin: 3rem 0;
  padding: 2rem 0;
}

.back-button img {
  transition: transform 0.2s ease;
  cursor: pointer;
}

.back-button img:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem 1rem;
  }
  
  .project-header {
    margin-bottom: 2rem;
  }
  
  .project-section {
    margin: 2rem 0;
  }
  
  .long-screenshot-container {
    width: 100%;
    max-width: 100%;
    height: 70vh;
    max-height: 600px;
    min-height: 400px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}
