/* Personal Website Redesign - New Color Scheme */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

/* CSS Custom Properties for Color Management */
:root {
  /* Primary Color Palette */
  --color-background: #222F3E;
  --color-header-background: #fef7ef;
  --color-text-primary: #b5cdde;
  --color-text-secondary: #f6caa6;
  --color-accent: #f6caa6;
  
  /* Derived Colors */
  --color-text-dark: #2c3e50;
  --color-border: rgba(181, 205, 222, 0.3);
  --color-shadow: rgba(181, 205, 222, 0.2);
  --color-hover: rgba(246, 202, 166, 0.1);
  
  /* Typography */
  --font-family-primary: 'Raleway', sans-serif;
  --font-family-serif: 'Playfair Display', 'Times New Roman', serif;
  --font-weight-normal: 400;
  --font-weight-bold: 700;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-primary);
  margin: 0;
  padding: 0;
  background-color: var(--color-background);
  color: var(--color-text-primary);
  line-height: 1.6;
}

/* All headers use serif font and normal weight */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-normal);
}

/* Header Styles */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  background-color: var(--color-background);
  border-bottom: 3px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px var(--color-shadow);
  min-height: 80px;
}

.logo-area {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}



.logo {
  height: 60px;
  width: auto;
  display: block;
  border-radius: 6px;
}

/* Navigation Styles */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  gap: var(--spacing-sm);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-button {
  background: transparent;
  border: none;
  padding: 2px;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: inline-block;
}





.nav-button:focus {
  outline: 3px solid var(--color-text-primary);
  outline-offset: 3px;
  border-radius: 8px;
}

.nav-button:active {
  transform: translateY(-1px) scale(0.98);
  transition: all 0.1s ease;
}

.nav-icon {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
  display: block;
  opacity: 1;
  border-radius: 8px;
}



/* Main Content Styles */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-lg);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
  display: block;
}

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

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-header h1 {
  color: var(--color-text-secondary);
  font-size: 2.5rem;
  font-weight: var(--font-weight-normal);
  font-family: var(--font-family-serif);
  margin: 0;
  text-shadow: 2px 2px 4px var(--color-shadow);
}

/* About Section Styles */
.intro-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
  text-align: left;
  margin: 0 auto;
  max-width: 900px;
}

.profile-image {
  margin: 0;
  flex-shrink: 0;
}

.profile-image img {
  width: 300px;
  height: auto;
  border: 4px solid var(--color-text-secondary);
  border-radius: 12px;
  box-shadow: 0 8px 16px var(--color-shadow);
}

.intro-text {
  flex: 1;
  min-width: 300px;
}

.intro-text p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--color-text-primary);
}

/* Project Styles */
.project-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: var(--spacing-xl) auto;
  gap: var(--spacing-lg);
  background-color: var(--color-header-background);
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: var(--spacing-lg);
  max-width: 900px;
  box-shadow: 0 4px 8px var(--color-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px var(--color-shadow);
}

.project-text {
  flex: 1;
  text-align: left;
}

.project-text h2 {
  margin-top: 0;
  color: var(--color-text-secondary);
  font-family: var(--font-family-serif);
}

.project-link {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-normal);
  transition: color 0.3s ease;
}

.project-link:hover {
  color: var(--color-text-primary);
  text-decoration: underline;
}

.project-image {
  margin: 0;
  flex-shrink: 0;
}

.project-image img {
  width: 250px;
  height: auto;
  border: 3px solid var(--color-text-secondary);
  border-radius: 8px;
  box-shadow: 0 4px 8px var(--color-shadow);
}

/* Art Gallery Styles */
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  width: 100%;
}

.art-hover-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 8px var(--color-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.art-hover-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px var(--color-shadow);
}

.art-hover-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.art-hover-container:hover img {
  filter: blur(2px) brightness(70%);
  transform: scale(1.05);
}

.hover-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-header-background);
  font-size: 1.2em;
  font-weight: var(--font-weight-bold);
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  padding: var(--spacing-sm);
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  max-width: 90%;
}

.art-hover-container:hover .hover-text {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-sm);
    min-height: auto;
  }
  
  .logo-area {
    align-self: center;
  }
  
  .main-nav {
    justify-content: center;
    width: 100%;
  }
  
  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-xs);
  }
  
  .nav-button {
    padding: 2px;
  }
  
  .nav-icon {
    height: 45px;
    width: auto;
  }
  
  main {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .section-header h1 {
    font-size: 2rem;
  }
  
  .intro-container {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg);
  }
  
  .profile-image img {
    width: 250px;
  }
  
  .project-item {
    flex-direction: column;
    text-align: center;
  }
  
  .project-image img {
    width: 100%;
    max-width: 300px;
  }
  
  .art-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .main-header {
    padding: var(--spacing-sm);
  }
  
  .logo {
    height: 50px;
  }
  
  .nav-list {
    flex-direction: column;
    gap: var(--spacing-xs);
    width: 100%;
  }
  
  .nav-button {
    padding: 2px;
  }
  
  .nav-icon {
    height: 40px;
    width: auto;
  }
  
  .section-header h1 {
    font-size: 1.8rem;
  }
  
  .profile-image img {
    width: 200px;
  }
  
  .intro-text p {
    font-size: 1.1rem;
  }
}