/* Modern Home Page Styles */
:root {
  --primary-blue: #00A6FF;
  --platefull-red: #ff6b6b;
  --cafe-purple: #541649;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --white: #ffffff;
  --black: #000000;
  --gradient-blue: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  --shadow-light: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-medium: 0 8px 40px rgba(0,0,0,0.15);
  --shadow-heavy: 0 20px 80px rgba(0,0,0,0.2);
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: var(--gradient-dark);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.title-line {
  display: block;
  color: var(--white);
}

.title-line.highlight {
  background: linear-gradient(135deg, var(--primary-blue), var(--platefull-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.crossed-out {
  text-decoration: line-through;
  text-decoration-color: #ff6b6b;
  text-decoration-thickness: 2px;
  opacity: 0.8;
}

.hero-subtitle-humor {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--text-light);
  margin-bottom: 3rem;
  font-weight: 600;
  font-style: italic;
}

.hero-cta {
  margin-top: 2rem;
}

.scroll-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.scroll-indicator:hover {
  transform: translateY(5px);
}

.scroll-indicator span {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  position: relative;
  animation: scrollBounce 2s infinite;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: translate(-50%, -50%) rotate(45deg);
}

@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Floating Shapes */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.floating-shapes {
  position: relative;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(10px) rotate(240deg); }
}

/* Projects Showcase */
.projects-showcase {
  padding: 8rem 2rem;
  background: var(--white);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.project-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.project-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-badge {
  display: inline-block;
  background: var(--primary-blue);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.project-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.project-description {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.7;
  flex: 1;
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  min-height: 2.5rem;
}

.feature {
  background: rgba(0, 166, 255, 0.1);
  color: var(--primary-blue);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
  min-height: 4rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.project-link:hover {
  gap: 1rem;
}

.project-link.app-store {
  color: var(--platefull-red);
}

.arrow-icon {
  width: 20px;
  height: 20px;
  transition: var(--transition);
}

.tech-stack-tag {
  background: rgba(0, 166, 255, 0.05);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  cursor: pointer;
  transition: var(--transition);
}

.tech-stack-tag:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-1px);
}

/* Project Gallery */
.project-gallery {
  padding: 4rem 2rem;
  background: #f8f9fa;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  padding: 1.5rem;
  background: var(--white);
  text-align: center;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.1rem;
}

/* Project-specific styling */
.project-card.contxt .project-badge {
  background: var(--primary-blue);
}

.project-card.platefullai .project-badge {
  background: var(--platefull-red);
}

.project-card.cafe-sunflower .project-badge {
  background: var(--cafe-purple);
}

.link-to-site {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.link-to-site:hover {
  color: var(--text-dark);
  text-decoration: underline;
}

/* Philosophy Section */
.philosophy-section {
  padding: 8rem 2rem;
  background: var(--gradient-blue);
  color: var(--white);
}

.philosophy-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.philosophy-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.philosophy-description {
  font-size: 1.3rem;
  line-height: 1.7;
  opacity: 0.9;
}

.geometric-pattern {
  width: 300px;
  height: 300px;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Contact Section */
.contact-section {
  padding: 8rem 2rem;
  background: var(--white);
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 1.2rem;
  color: var(--text-light);
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--gradient-blue);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-medium);
}

.contact-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

.cta-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg);
  transition: var(--transition);
}

.contact-cta:hover .cta-arrow {
  transform: rotate(-45deg) translateX(5px);
}

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

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(10%); opacity: 0; }
}

@keyframes slideIn {
  from { transform: translateX(-10%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.slide-out {
  animation: slideOut 0.3s forwards;
}

.slide-in {
  animation: slideIn 0.3s forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .philosophy-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .geometric-pattern {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
  
  .contact-info {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
  
  .showcase-title, .philosophy-title, .contact-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .project-info {
    padding: 1.5rem;
  }
  
  .project-visual {
    padding: 1.5rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.project-link:focus,
.contact-cta:focus,
.scroll-indicator:focus {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Loading states */
.project-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Hover effects for interactive elements */
.project-card:hover .project-link {
  color: var(--text-dark);
}

.project-card:hover .arrow-icon {
  transform: translateX(5px);
}

/* Tech Stack Modal */
.tech-stack-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.tech-stack-content {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-heavy);
  position: relative;
}

.tech-stack-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.tech-stack-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.close-modal {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.close-modal:hover {
  background: #f0f0f0;
  color: var(--text-dark);
}

.tech-stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tech-item {
  background: rgba(0, 166, 255, 0.1);
  color: var(--primary-blue);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(0, 166, 255, 0.2);
  transition: var(--transition);
  white-space: nowrap;
}

.tech-item:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}


