/* =====================================================
   DANIELE WOLSKI - PORTFOLIO
   Vanilla CSS Version
   ===================================================== */

/* CSS Variables */
:root {
  --background: hsl(222, 47%, 6%);
  --foreground: hsl(210, 40%, 96%);
  --card: hsl(222, 47%, 8%);
  --card-foreground: hsl(210, 40%, 96%);
  --primary: hsl(174, 72%, 56%);
  --primary-foreground: hsl(222, 47%, 6%);
  --secondary: hsl(222, 47%, 12%);
  --secondary-foreground: hsl(210, 40%, 96%);
  --muted: hsl(222, 47%, 14%);
  --muted-foreground: hsl(215, 20%, 55%);
  --accent: hsl(142, 71%, 45%);
  --accent-foreground: hsl(222, 47%, 6%);
  --border: hsl(222, 30%, 18%);
  --ring: hsl(174, 72%, 56%);
  --radius: 0.5rem;
  
  --glow-primary: 0 0 20px hsla(174, 72%, 56%, 0.4);
  --glow-accent: 0 0 20px hsla(142, 71%, 45%, 0.4);
  --gradient-hero: linear-gradient(135deg, hsla(174, 72%, 56%, 0.1), hsla(142, 71%, 45%, 0.05));
  --gradient-card: linear-gradient(145deg, hsl(222, 47%, 10%), hsl(222, 47%, 6%));
  --text-gradient: linear-gradient(90deg, hsl(174, 72%, 56%), hsl(142, 71%, 45%));
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
#navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: hsla(222, 47%, 6%, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

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

.nav-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--foreground);
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem;
  background: var(--card);
  border-top: 1px solid var(--border);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu .nav-link {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  text-align: left;
}

.hero-greeting {
  font-family: 'JetBrains Mono', monospace;
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.hero-name {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.text-gradient {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  min-height: 2.5rem;
}

.typing-text {
  border-right: 2px solid var(--primary);
  padding-right: 4px;
}

.cursor {
  animation: blink 1s step-end infinite;
  color: var(--primary);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-description {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

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

.hero-decoration {
  display: none;
}

@media (min-width: 1024px) {
  .hero-section {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 4rem;
  }
  
  .hero-decoration {
    display: block;
  }
}

/* Code Block */
.code-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.8;
}

.code-keyword { color: hsl(280, 100%, 70%); }
.code-variable { color: var(--foreground); }
.code-property { color: var(--primary); }
.code-string { color: var(--accent); }
.code-boolean { color: hsl(30, 100%, 60%); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  box-shadow: var(--glow-primary);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* =====================================================
   SECTION STYLES
   ===================================================== */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  text-align: center;
  margin-bottom: 3rem;
}

.title-decorator {
  color: var(--primary);
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about-section {
  background: var(--background);
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1.5fr;
  }
}

.about-image {
  position: relative;
}

.profile-photo {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  margin: 0 auto;
  display: block;
}

.image-decoration {
  position: absolute;
  inset: 10px -10px -10px 10px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.5;
}

/* Terminal Window */
.terminal-window {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.terminal-body {
  padding: 1.5rem;
}

.terminal-line {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--muted-foreground);
}

.terminal-line::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.terminal-line:last-child {
  margin-bottom: 0;
}

/* Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-number {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* =====================================================
   SKILLS SECTION
   ===================================================== */
.skills-section {
  background: var(--gradient-hero);
}

.skills-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

.skills-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.skills-card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.skills-card-title .icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.skill-category {
  margin-bottom: 2rem;
}

.skill-category:last-child {
  margin-bottom: 0;
}

.skill-category h4 {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  font-weight: 500;
}

.skill-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  cursor: default;
}

.skill-icon:hover {
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
  transform: translateY(-2px);
}

.skill-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.skill-icon span {
  font-size: 0.7rem;
  color: var(--muted-foreground);
}

/* Soft Skills */
.soft-skills-list {
  list-style: none;
}

.soft-skills-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
}

.soft-skills-list li:last-child {
  border-bottom: none;
}

.check-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* =====================================================
   EXPERIENCE SECTION
   ===================================================== */
.experience-section {
  background: var(--background);
}

.experience-tabs {
  max-width: 800px;
  margin: 0 auto;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.75rem 2rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted-foreground);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  transform: translateX(-5px);
  box-shadow: var(--glow-primary);
}

.timeline-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.timeline-header {
  margin-bottom: 0.5rem;
}

.timeline-header h3 {
  font-size: 1.125rem;
  color: var(--foreground);
}

.timeline-company {
  color: var(--primary);
  font-size: 0.875rem;
}

.timeline-date {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  background: var(--secondary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.timeline-description {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 0.25rem 0.75rem;
  background: hsla(174, 72%, 56%, 0.1);
  color: var(--primary);
  border-radius: var(--radius);
  border: 1px solid hsla(174, 72%, 56%, 0.3);
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact-section {
  background: var(--gradient-hero);
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.contact-info > p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.contact-value {
  color: var(--foreground);
  font-size: 0.9rem;
}

a.contact-value:hover {
  color: var(--primary);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.social-link svg {
  width: 20px;
  height: 20px;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

.social-link:hover {
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

.social-link:hover svg {
  color: var(--primary);
}

/* Contact Form */
.contact-form-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  color: var(--foreground);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px hsla(174, 72%, 56%, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted-foreground);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer-logo span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.footer-logo p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

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

.footer-links a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  color: var(--muted-foreground);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.footer-code {
  font-family: 'JetBrains Mono', monospace;
}

.heart {
  color: #ff5f56;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}
