/* Base styles */
:root {
  --primary-color: #0070f3;
  --secondary-color: #00b7c6;
  --text-color: #333;
  --light-text: #fff;
  --dark-bg: #121212;
  --light-bg: #f5f5f5;
  --card-bg: rgba(255, 255, 255, 0.1);
  --card-border: rgba(255, 255, 255, 0.2);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--light-text);
  background-color: var(--dark-bg);
  overflow-x: hidden;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

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

.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--light-text);
  border-radius: 4px;
  font-weight: 500;
  transition: var(--transition);
}

.button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  color: var(--light-text);
}

/* Background */
#vanta-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Layout */
.container {
  position: relative;
  z-index: 2 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Header and Navigation */
header {
  padding: 30px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background-color: rgba(18, 18, 18, 0.5);
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

nav li {
  margin: 0 20px;
}

nav a {
  color: var(--light-text);
  font-weight: 500;
  font-size: 18px;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

/* Hero Section */
#hero {
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#hero h1 {
  font-size: 4rem;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#hero h2 {
  font-size: 2rem;
  font-weight: 400;
}

/* Section Styles */
section {
  padding: 100px 0;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* About section */
.content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
}

/* Projects */
.project-grid, 
.recommendation-grid, 
.travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  width: 100%;
}

/* Card styling */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card h3 {
  margin-bottom: 15px;
  color: var(--light-text);
}

.card p {
  margin-bottom: 20px;
}

/* Recommendations */
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.tab-button {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--light-text);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.tab-button:hover, .tab-button.active {
  border-bottom: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.tab-pane {
  display: none;
}

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

/* Travel */
.travel-image {
  height: 200px;
  background-color: #333;
  background-size: cover;
  background-position: center;
}

.travel-card h3, .travel-card p, .travel-card .button {
  margin: 15px;
}

/* Footer */
footer {
  padding: 50px 0;
  text-align: center;
  border-top: 1px solid var(--card-border);
}

.social-links {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.social-links a {
  margin: 0 15px;
  color: var(--light-text);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.project-grid > div, 
.recommendation-grid > div, 
.travel-grid > div {
  animation-fill-mode: forwards;
  opacity: 0;
  transform: translateY(20px);
}

.animated .project-grid > div, 
.animated .recommendation-grid > div, 
.animated .travel-grid > div {
  animation: fadeIn 0.6s ease forwards;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav li {
    margin: 10px 0;
  }

  #hero h1 {
    font-size: 3rem;
  }

  #hero h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 60px 0;
  }

  .content {
    flex-direction: column;
  }

  .text {
    order: 2;
  }

  .project-grid, 
  .recommendation-grid, 
  .travel-grid {
    grid-template-columns: 1fr;
  }
}

/* Grid styles */
.project-grid, .recommendation-grid, .travel-grid {
  display: grid;
  gap: 30px;
  width: 100%;
  visibility: visible !important;
}

/* Card sizing */
.project-grid > div, 
.recommendation-grid > div, 
.travel-grid > div {
  width: 100%;
  max-width: 100%;
  height: 100%;
}

/* Ensure cards are visible at all screen sizes */
@media (min-width: 1280px) {
  .project-grid, .recommendation-grid, .travel-grid {
    width: 90%;
  }
}

@media (min-width: 1536px) {
  .project-grid, .recommendation-grid, .travel-grid {
    width: 80%;
  }
}

/* Tab functionality */
.tab-button:hover, .tab-button.active {
  border-bottom: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.tab-pane {
  display: none;
}

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