/*
Theme Name: Data Science Portfolio
Theme URI: 
Author: Claude
Author URI: 
Description: A modern minimal one-page WordPress theme for a Data Science student.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: datascience-portfolio
Tags: one-column, custom-colors, custom-menu, portfolio, animated
*/

/* Core Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-bg: #F8F9FA;         /* Light Gray Background */
  --color-text: #2D3748;       /* Dark Text */
  --color-text-muted: #718096; /* Muted Text */
  --color-accent: #D97757;     /* Claude Orange */
  --color-accent-hover: #c26547;
  --color-accent-light: rgba(217, 119, 87, 0.1);
  --color-white: #FFFFFF;
  --color-border: #E2E8F0;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

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

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

section {
  padding: var(--spacing-xxl) 0;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

section:last-of-type {
  border-bottom: none;
}

/* Subtle background accent */
section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 10% 20%, var(--color-accent-light) 0%, transparent 40%);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-xl);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.section-title:hover::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  color: var(--color-white);
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px 0 rgba(217, 119, 87, 0.39);
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(217, 119, 87, 0.5);
  color: var(--color-white);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.tag {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

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

.item-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.item-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.item-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  background: var(--color-white);
}

.item-card:hover::before {
  transform: scaleX(1);
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--spacing-sm);
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.item-title {
  font-size: 1.5rem;
  margin-bottom: 0;
  transition: color 0.3s ease;
}

.item-card:hover .item-title {
  color: var(--color-accent);
}

.item-meta {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--color-accent-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* Float animation for the hero image */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.hero-image img {
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 20px 30px -10px rgba(0,0,0,0.15);
  border: 6px solid var(--color-white);
  transition: transform 0.3s;
}

.hero-image img:hover {
  transform: scale(1.05);
  animation-play-state: paused;
}

.site-footer {
  padding: var(--spacing-xl) 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Animations added via JS scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for grid items */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
