@import url('https://fonts.googleapis.com/css?family=Montserrat');
@import url('https://fonts.googleapis.com/css?family=Arimo');
@import url('https://fonts.googleapis.com/css?family=Lora');

/* --- Global Styles --- */
body, html {
  font-family: 'Montserrat', sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
  color: #222;
  line-height: 1.6;
}

a {
  color: #222;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

a:hover {
  color: #87CEEB;
}

p {
  font-size: 1.1em;
  line-height: 1.6;
}

hr {
  margin: auto;
  width: 40%;
}

/* --- Headings --- */
h1 {
  font-family: 'Lora', serif;
  font-size: 6em;
  margin: 0;
}

h2, h3 {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  margin: 0 0 0.5em 0;
}

h2 {
  font-size: 2.3em;
}

h3 {
  font-size: 1.8em;
  font-weight: lighter;
  margin-bottom: 0.2em;
}

h4 {
  font-family: 'Lora', serif;
  font-size: 3em;
  margin: 0 0 0.5em 0;
}

/* --- Navigation --- */
.site-header {
  margin: 2% 0;
  padding: 0.5em 1em;
  display: flex;
  justify-content: flex-end;
}

.site-navigation ul,
.site-navigation li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-navigation li {
  display: inline;
  margin: 1.4em 1em 1em;
  font-family: 'Arimo', sans-serif;
  font-weight: bold;
  font-size: 1.1em;
  text-transform: uppercase;
}

/* --- Utility Classes --- */
.underline {
  text-decoration: underline;
}

.center {
  text-align: center;
}

/* --- Shared Layout --- */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2em;
}

/* --- Intro & Sections --- */
.intro-section {
  text-align: center;
  margin-bottom: 3em;
}

.gallery-section {
  margin-bottom: 3em;
}

.contact-section {
  text-align: center;
  margin-top: 2em;
}

/* --- Images --- */
.portfolio-img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1.5em;
}

/* --- Bio Layout --- */
.bio {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  padding: 2em;
  margin: 2em 0;
}

.bio-column {
  flex: 50%;
  margin: 2%;
}

/* --- Galleries --- */
.pictures {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
}

.picture-column {
  flex: 0 0 calc(40% - 2em);
  max-width: calc(40% - 2em);
  display: flex;
  justify-content: center;
}

.gallery {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  width: 80%;
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* --- Responsive: Desktop --- */
@media (min-width: 901px) {
  .portfolio-img {
    width: 40%;
    max-width: 400px;
  }
}

/* --- Responsive: Mobile --- */
@media (max-width: 900px) {
  .pictures {
    display: block;
    margin: 2%;
  }

  .picture-column {
    width: 100%;
    margin-bottom: 1.5em;
    padding: 1%;
    display: flex;
    justify-content: center;
  }

  .gallery {
    width: 90%;
    max-width: 90vw;
  }

  .bio-column {
    margin: 6%;
  }


  .portfolio-img {
    width: 75%;
    max-width: 90vw;
    margin-bottom: 1.5em;
  }

  .intro-section h2 {
    font-size: 1.8em;
  }

  .contact-section h3 {
    font-size: 1.5em;
  }
}

/* --- CV / Skills Container --- */
.cv-container {
  max-width: 900px;
  margin: 4em auto 6em;
  padding: 0 1em 4em;
  color: #222;
  font-family: 'Montserrat', sans-serif;
}

/* --- CV Section Titles --- */
.cv-section-title {
  font-size: 2.3em; /* matches h2 */
  text-transform: uppercase;
  margin-bottom: 0.5em;
  border-bottom: 2px solid #87CEEB;
  padding-bottom: 0.2em;
}

/* --- Summary --- */
.summary {
  font-size: 1.3em;
  font-weight: 500;
  margin-bottom: 3em;
  line-height: 1.5;
  color: #444;
}

/* --- Skills Grid --- */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  margin-bottom: 3em;
}

.skill-category {
  background: #f9f9f9;
  padding: 1.2em 1.5em;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.skill-category h3 {
  margin-top: 0;
  margin-bottom: 1em;
  font-weight: 600;
  color: #333;
  text-transform: none;
}

/* Individual Skill */
.skill {
  margin-bottom: 1em;
}

.skill-name {
  font-weight: 600;
  margin-bottom: 0.3em;
}

.skill-bar {
  height: 14px;
  background: #ddd;
  border-radius: 7px;
  overflow: hidden;
}

.skill-level {
  height: 100%;
  background: #87CEEB;
  border-radius: 7px 0 0 7px;
}

/* --- Work Experience & Education --- */
.experience-section,
.education-section {
  margin-bottom: 3em;
}

.job,
.education-item {
  margin-bottom: 1.8em;
}

.job-title,
.education-degree {
  font-weight: 600;
  font-size: 1.2em;
  margin-bottom: 0.2em;
  color: #222;
  text-transform: none;
}

.job-company,
.education-school {
  font-style: italic;
  color: #666;
  margin-bottom: 0.3em;
}

.job-dates,
.education-dates {
  font-size: 0.9em;
  color: #999;
  margin-bottom: 0.6em;
}

.job-description {
  line-height: 1.4;
  color: #444;
}

/* --- Creative Work Portfolio Styles --- */
.work-hero {
  background: linear-gradient(135deg, #87CEEB 0%, #B0E0E6 100%);
  color: white;
  padding: 4em 2em;
  border-radius: 20px;
  margin-bottom: 4em;
  position: relative;
  overflow: hidden;
}

.work-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-size: 1.2em;
  margin-bottom: 2em;
  opacity: 0.9;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3em;
  margin-top: 2em;
}

.stat-item {
  text-align: center;
  animation: slideUp 0.8s ease-out;
}

.stat-number {
  display: block;
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 0.2em;
}

.stat-label {
  font-size: 0.9em;
  opacity: 0.8;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.work-category {
  margin-bottom: 5em;
}

.section-header {
  text-align: center;
  margin-bottom: 3em;
  position: relative;
}

.section-header h2 {
  font-size: 2.2em;
  color: #333;
  margin-bottom: 0.5em;
  position: relative;
  display: inline-block;
}

.section-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #87CEEB, #B0E0E6);
  margin: 0 auto;
  border-radius: 2px;
  position: relative;
}

.section-line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #87CEEB;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Grid Variations */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2em;
  align-items: start;
}

.staggered-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2em;
}

.asymmetric-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2em;
}

.creative-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  position: relative;
}

/* Work Item Styles */
.work-item {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.work-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.featured-item {
  transform: scale(1.05);
}

.large-item {
  grid-row: span 2;
}

.diagonal-item {
  transform: rotate(-1deg);
}

.diagonal-item:hover {
  transform: rotate(0deg) translateY(-8px);
}

.floating-item {
  animation: gentleFloat 6s ease-in-out infinite;
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.slide-up {
  animation: slideUpDelayed 0.8s ease-out;
}

.slide-up-delay {
  animation: slideUpDelayed 0.8s ease-out 0.2s both;
}

@keyframes slideUpDelayed {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.work-image-container {
  position: relative;
  overflow: hidden;
}

.work-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.work-item:hover .work-image {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(135, 206, 235, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-item:hover .image-overlay {
  opacity: 1;
}

.view-project {
  color: white;
  font-weight: bold;
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.8em 1.5em;
  border: 2px solid white;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.view-project:hover {
  background: white;
  color: #87CEEB;
  transform: scale(1.05);
}

.work-details {
  padding: 2em;
}

.work-details h3 {
  font-size: 1.4em;
  margin-bottom: 0.7em;
  color: #222;
  text-transform: none;
  position: relative;
}

.work-details p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 1.5em;
  font-size: 0.95em;
}

/* Creative Category Tags */
.work-category-tag {
  display: inline-block;
  color: white;
  padding: 0.4em 1em;
  border-radius: 25px;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.brand-tag {
  background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
}

.marketing-tag {
  background: linear-gradient(45deg, #4ECDC4, #6EE7E0);
}

.print-tag {
  background: linear-gradient(45deg, #45B7D1, #87CEEB);
}

.web-tag {
  background: linear-gradient(45deg, #96CEB4, #A8E6CF);
}

.work-category-tag:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .hero-stats {
    flex-direction: column;
    gap: 1.5em;
    align-items: center;
  }
  
  .stat-item {
    min-width: 100px;
  }
  
  .masonry-grid,
  .staggered-grid,
  .asymmetric-grid,
  .creative-grid {
    grid-template-columns: 1fr;
  }
  
  .diagonal-item {
    transform: none;
  }
  
  .diagonal-item:hover {
    transform: translateY(-8px);
  }
  
  .work-hero {
    padding: 3em 1.5em;
  }
  
  .section-header h2 {
    font-size: 1.8em;
  }
}

@media (max-width: 600px) {
  .skills {
    grid-template-columns: 1fr;
  }
  
  .work-details {
    padding: 1.5em;
  }
  
  .work-item {
    margin-bottom: 1em;
  }
  
  .featured-item {
    transform: none;
  }
}
