/* Core Variables & Theme */
:root {
  --bg-color: #050505;
  --card-bg: #111111;
  --text-main: #e0e0e0;
  --text-muted: #888888;
  --accent: #2563eb;
  /* Modern Blue */
  --accent-hover: #3b82f6;
  --border-color: #222222;

  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 900px;
  --spacing-unit: 1rem;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/background.jpg') no-repeat center center/cover;
  filter: blur(12px) brightness(0.3);
  z-index: -1;
  transform: scale(1.1);
  /* Prevent blurred edges from showing */
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 4rem;
  padding-top: 2rem;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero p {
  color: #f0f0f0;
  /* Brighter white for readability */
  font-size: 1.125rem;
  max-width: 600px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Projects Grid */
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card-link {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Glass Panel Utility */
.glass-panel {
  background: rgba(20, 20, 20, 0.6);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.glass-panel:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

/* About Section */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
  padding-bottom: 1rem;
}

.about-item {
  display: flex;
  align-items: baseline;
  padding: 1rem 1.5rem;
  flex-wrap: wrap;
}

.about-item h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0;
  /* Remove bottom margin */
  margin-right: 1.5rem;
  /* Add spacing between title and text */
  min-width: 100px;
  /* Ensure alignment */
  flex-shrink: 0;
}

.about-item p {
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
}

/* Footer & Socials */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.social-link {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.social-link:hover {
  color: var(--text-main);
}

/* Responsive */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

/* Photography Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 4rem;
  padding: 0;
  display: flex;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  transform: translateX(100%);
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.carousel-slide.slide-out {
  transform: translateX(-100%);
  opacity: 0;
  z-index: 1;
}

.carousel-next {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(4px);
}

.carousel-next:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
  border-color: var(--accent);
}

@media (max-width: 600px) {
  .carousel-container {
    height: 250px;
  }
}