/* ==================== WO-PF-01: GRAPHIC DESIGNER PORTFOLIO ==================== */
/* Alex Chen - Modern, Bold Portfolio Template */
/* Color Palette: Electric Blue, Purple, Dark */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #a855f7;
  --accent: #22d3ee;
  --text-dark: #1a1a2e;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --white: #ffffff;
}

/* Override base colors */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

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

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

.section-badge {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

/* Typography */
body {
  font-family: 'DM Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navbar */
.navbar-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
}

.navbar-brand span {
  color: var(--primary);
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--primary);
}

.navbar-link::after {
  background: var(--primary);
}

/* Hero Portfolio */
.hero-portfolio {
  background: linear-gradient(135deg, var(--bg-light) 0%, #e0e7ff 100%);
  min-height: 100vh;
  padding-top: 100px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--text-light);
}

.hero-social {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.hero-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 12px;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hero-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-wrapper img {
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.floating-badge {
  position: absolute;
  background: var(--white);
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-badge span:first-child {
  font-size: 2rem;
}

.floating-badge strong {
  display: block;
  font-size: 1.25rem;
  color: var(--text-dark);
}

.floating-badge div span {
  font-size: 0.8125rem;
  color: var(--text-light);
}

.badge-1 {
  top: 30px;
  right: -20px;
}

.badge-2 {
  bottom: 50px;
  left: -30px;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-social {
    justify-content: center;
  }

  .badge-1 {
    right: 10px;
  }

  .badge-2 {
    left: 10px;
  }
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 24px;
}

.portfolio-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.portfolio-item-large {
  grid-row: span 2;
}

.portfolio-image {
  width: 100%;
  height: 100%;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.5) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(99, 102, 241, 0.3);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
  width: fit-content;
}

.portfolio-overlay h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .portfolio-item {
    height: 300px;
  }

  .portfolio-item-large {
    grid-row: span 1;
    grid-column: span 2;
    height: 400px;
  }
}

@media (max-width: 576px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item-large {
    grid-column: span 1;
    height: 300px;
  }
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 32px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card > p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-list {
  margin-bottom: 20px;
}

.service-list li {
  padding: 6px 0;
  color: var(--text-light);
  font-size: 0.875rem;
  position: relative;
  padding-left: 20px;
}

.service-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  transition: color 0.3s ease;
}

.service-link:hover {
  color: var(--secondary);
}

@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.about-experience {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 24px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.exp-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.exp-text {
  font-size: 0.8125rem;
  opacity: 0.9;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content > p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.skills-grid {
  margin: 32px 0;
}

.skill-item {
  margin-bottom: 20px;
}

.skill-name {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9375rem;
}

.skill-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 4px;
  transition: width 1s ease;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 500px;
    margin: 0 auto;
  }

  .about-experience {
    right: 10px;
  }
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
}

.testimonial-rating {
  color: #fbbf24;
}

/* CTA Portfolio */
.cta-portfolio {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
}

.cta-portfolio .cta-title,
.cta-portfolio .cta-description {
  color: var(--white);
}

.cta-portfolio .btn-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.cta-portfolio .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
  background: var(--bg-dark);
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
}

.footer-brand span {
  color: var(--primary);
}

.footer-social a:hover {
  background: var(--primary);
}

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

/* Section Alt */
.section-alt {
  background: var(--bg-light);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
}
