/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #d8dee9;
  background-color: #2e3440;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header and Navigation */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(46, 52, 64, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.nav-brand h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2f4266;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: #2f4266;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #d08770;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #d8dee9;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 0 2rem;
  margin-top: 80px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #eceff4;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #81a1c1;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-placeholder {
  width: 400px;
  height: 300px;
  background: linear-gradient(135deg, #5e81ac 0%, #81a1c1 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #eceff4;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: #d08770;
  color: #2e3440;
}

.btn-primary:hover {
  background: #bf616a;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #d08770;
  border: 2px solid #d08770;
}

.btn-secondary:hover {
  background: #d08770;
  color: #2e3440;
  transform: translateY(-2px);
}

/* Portfolio Sections */
.portfolio-section {
  padding: 100px 0;
}

.alt-bg {
  background: #3b4252;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #eceff4;
  text-align: center;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: #81a1c1;
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background: transparent;
  border: 2px solid #434c5e;
  border-radius: 25px;
  color: #81a1c1;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: #d08770;
  color: #2e3440;
  border-color: #d08770;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  background: #3b4252;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.image-placeholder {
  height: 250px;
  background: linear-gradient(45deg, #434c5e, #4c566a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 500;
  color: #81a1c1;
}

.item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .item-overlay {
  transform: translateY(0);
}

.item-overlay h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* About Section */
.about-section {
  padding: 100px 0;
  background: #2e3440;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: #d8dee9;
}

.skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.skill-category h3 {
  color: #eceff4;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.skill-category ul {
  list-style: none;
}

.skill-category li {
  padding: 0.5rem 0;
  color: #81a1c1;
  border-bottom: 1px solid #434c5e;
}

.skill-category li:last-child {
  border-bottom: none;
}

.about-image .image-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #5e81ac 0%, #81a1c1 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #eceff4;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  background: #3b4252;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info h3 {
  color: #eceff4;
  margin-bottom: 2rem;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item strong {
  display: block;
  color: #eceff4;
  margin-bottom: 0.5rem;
}

.contact-form {
  background: #2e3440;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #eceff4;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #434c5e;
  border-radius: 5px;
  font-family: inherit;
  transition: border-color 0.3s ease;
  background: #3b4252;
  color: #d8dee9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #d08770;
}

/* Footer */
.footer {
  background: #2e3440;
  color: #d8dee9;
  padding: 3rem 0 1rem;
  border-top: 1px solid #434c5e;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-info h3 {
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #d8dee9;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #d08770;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #434c5e;
  color: #81a1c1;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(46, 52, 64, 0.95);
  z-index: 2000;
}

.lightbox-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #eceff4;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-info {
  color: #d8dee9;
  padding: 1rem 0;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
}

.lightbox-nav button {
  position: absolute;
  background: rgba(208, 135, 112, 0.3);
  color: #eceff4;
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.lightbox-nav button:hover {
  background: rgba(208, 135, 112, 0.6);
}

#lightbox-prev {
  left: -60px;
}

#lightbox-next {
  right: -60px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
  
  .hero-placeholder {
    width: 300px;
    height: 200px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .skills {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .filter-tabs {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .lightbox-nav button {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .nav {
    padding: 1rem 15px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    text-align: center;
  }
}

/* Animation utilities */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gallery filter animations */
.gallery-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.gallery-item.visible {
  opacity: 1;
  transform: scale(1);
  transition: all 0.3s ease;
}