/* === portfolio.css === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-dark: #0a0a0a;
  --secondary-dark: #111111;
  --accent-gold: #c9a87c;
  --accent-gold-light: #dcc9b0;
  --accent-beige: #ebe4d9;
  --text-primary: #f0ebe4;
  --text-secondary: #ccc5bd;
  --border-color: rgba(235, 228, 217, 0.08);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-alt: 'Montserrat', sans-serif;
  --transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--primary-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

/* ===== LOGO IMAGE STYLES ===== */
.logo-img {
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}

/* Preloader Logo */
.preloader-logo-img {
  width: 120px;
  height: auto;
  filter: brightness(0) invert(1);
  animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

/* Header Logo */
.header-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  margin-right: 8px;
}

/* ===== HERO LOGO ===== */
.hero-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.hero-logo-display {
  width: 380px;
  height: auto;
  max-width: 90%;
  filter: drop-shadow(0 0 60px rgba(201, 168, 124, 0.2)) 
          drop-shadow(0 0 120px rgba(201, 168, 124, 0.1));
  animation: heroLogoFloat 4s ease-in-out infinite;
  border-radius: 16px;
  position: relative;
  z-index: 2;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-logo-display:hover {
  transform: scale(1.03) rotate(-1deg);
}

.hero-logo-glow {
  position: absolute;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(201, 168, 124, 0.12) 0%, transparent 60%);
  border-radius: 50%;
  animation: glowPulse 3s ease-in-out infinite;
  z-index: 1;
}

.hero-logo-glow-secondary {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 168, 124, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulseSecondary 4s ease-in-out infinite reverse;
  z-index: 0;
}

@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.02); }
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
}

@keyframes glowPulseSecondary {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.3); opacity: 0.8; }
}

/* ===== FOOTER LOGO ===== */
.footer-logo-wrapper {
  margin-bottom: 15px;
}

.footer-logo-image {
  width: 120px;
  height: auto;
  filter: brightness(0.9) drop-shadow(0 0 20px rgba(201, 168, 124, 0.1));
  transition: var(--transition);
}

.footer-logo-image:hover {
  transform: scale(1.05);
  filter: brightness(1) drop-shadow(0 0 30px rgba(201, 168, 124, 0.2));
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-beige);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-logo-text span {
  color: var(--accent-gold);
}

/* ===== PORTFOLIO ITEM IMAGES - 19:10 ASPECT RATIO ===== */
.item-visual {
  width: 100%;
  aspect-ratio: 19 / 10;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--secondary-dark);
}

.item-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 1;
}

.portfolio-item:hover .item-photo {
  transform: scale(1.05);
}

/* Keep emoji items as fallback */
.item-emoji {
  font-size: 4.5rem;
  opacity: 0.4;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.portfolio-item:hover .item-emoji {
  transform: scale(1.15);
  opacity: 0.6;
}

.item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(4px);
  z-index: 3;
}

.portfolio-item:hover .item-overlay {
  opacity: 1;
}

.item-overlay span {
  color: var(--accent-beige);
  font-family: var(--font-alt);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--accent-gold);
  padding: 14px 35px;
  transition: var(--transition);
  background: rgba(10, 10, 10, 0.4);
  cursor: pointer;
}

.item-overlay span:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
  transform: scale(1.05);
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
}

.preloader-logo {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-beige);
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.preloader-logo span {
  color: var(--accent-gold);
}

.preloader-bar {
  width: 200px;
  height: 1px;
  background: var(--border-color);
  margin: 0 auto 20px;
  position: relative;
  overflow: hidden;
}

.preloader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-gold);
  animation: preloaderSlide 1.5s ease-in-out infinite;
}

@keyframes preloaderSlide {
  0% { left: -100%; }
  100% { left: 100%; }
}

.preloader-content p {
  color: var(--text-secondary);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: var(--font-alt);
}

/* Custom cursor */
.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--accent-gold);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
}

.cursor-outline {
  width: 35px;
  height: 35px;
  border: 1px solid rgba(201, 168, 124, 0.3);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 32px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-beige);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 1px;
  text-decoration: none;
}

.logo-icon {
  color: var(--accent-gold);
  font-size: 1rem;
}

.logo span {
  color: var(--accent-gold);
}

nav {
  display: flex;
  gap: 40px;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-alt);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width 0.4s ease;
}

nav a:hover {
  color: var(--accent-beige);
}

nav a:hover::after {
  width: 100%;
}

nav a.active {
  color: var(--accent-beige);
}

nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  color: var(--accent-beige);
  font-size: 1.3rem;
  cursor: pointer;
}

/* Portfolio Hero */
.portfolio-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 60px 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 30% 50%, rgba(201, 168, 124, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(201, 168, 124, 0.02) 0%, transparent 50%);
  z-index: 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  max-width: 700px;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.tag-line {
  width: 40px;
  height: 1px;
  background: var(--accent-gold);
}

.tag-text {
  font-family: var(--font-alt);
  font-size: 0.7rem;
  color: var(--accent-gold);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.portfolio-hero h1 {
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 30px;
  color: var(--accent-beige);
}

.portfolio-hero h1 .line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s ease forwards;
}

.portfolio-hero h1 .line:nth-child(1) { animation-delay: 0.2s; }
.portfolio-hero h1 .line:nth-child(2) { animation-delay: 0.4s; }
.portfolio-hero h1 .line:nth-child(3) { animation-delay: 0.6s; }
.portfolio-hero h1 .line:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portfolio-hero h1 .highlight {
  color: var(--accent-gold);
  font-style: italic;
  font-weight: 600;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.8s ease 1s forwards;
}

.hero-stats {
  display: flex;
  gap: 50px;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.2s forwards;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-beige);
  line-height: 1;
}

.hero-stat .stat-label {
  display: block;
  font-family: var(--font-alt);
  font-size: 0.6rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* Filter */
.portfolio-filter {
  padding: 40px 60px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.filter-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
}

.filter-btn {
  padding: 12px 28px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-alt);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--accent-beige);
  border-color: var(--accent-gold);
}

.filter-btn.active {
  color: var(--accent-beige);
  border-color: var(--accent-gold);
  background: rgba(201, 168, 124, 0.05);
}

/* Portfolio Grid */
.portfolio-grid {
  padding: 80px 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  max-width: 1400px;
  margin: 0 auto;
}

.portfolio-item {
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  background: rgba(10, 10, 10, 0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s ease forwards;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }
.portfolio-item:nth-child(7) { animation-delay: 0.7s; }

.portfolio-item:hover {
  transform: translateY(-10px);
  border-color: var(--accent-gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.item-content {
  padding: 30px;
}

.item-tag {
  font-family: var(--font-alt);
  font-size: 0.6rem;
  color: var(--accent-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 8px;
}

.item-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent-beige);
  margin-bottom: 12px;
}

.item-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 18px;
}

.item-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.item-tech span {
  padding: 3px 12px;
  background: rgba(201, 168, 124, 0.06);
  border: 1px solid var(--border-color);
  font-family: var(--font-alt);
  font-size: 0.6rem;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.item-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.item-features span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.6;
  font-weight: 300;
}

/* Testimonials */
.testimonials {
  padding: 120px 60px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  max-width: 1400px;
  margin: 0 auto;
}

.section-meta {
  font-family: var(--font-alt);
  font-size: 0.7rem;
  color: var(--accent-gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 70px;
  color: var(--accent-beige);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  padding: 40px 30px;
  border: 1px solid var(--border-color);
  background: rgba(10, 10, 10, 0.3);
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-5px);
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.author-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent-beige);
  font-weight: 600;
}

.author-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-alt);
  letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
  padding: 120px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.cta-container {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-container h2 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--accent-beige);
  line-height: 1.1;
  margin-bottom: 20px;
}

.cta-container p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 35px;
}

.btn-primary {
  display: inline-block;
  padding: 16px 40px;
  background: var(--accent-gold);
  color: var(--primary-dark);
  text-decoration: none;
  font-family: var(--font-alt);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: var(--transition);
  border: 1px solid var(--accent-gold);
  cursor: pointer;
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent-gold);
}

/* Footer */
footer {
  padding: 60px;
  border-top: 1px solid var(--border-color);
  max-width: 1400px;
  margin: 0 auto;
}

.footer-content {
  text-align: center;
}

footer p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 300;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 0.75rem;
  opacity: 0.5;
  font-style: italic;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.social-links a {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  border-color: var(--accent-gold);
  color: var(--accent-beige);
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1200px) {
  .portfolio-hero h1 {
    font-size: 4.5rem;
  }
  .section-title {
    font-size: 3.5rem;
  }
  .hero-logo-display {
    width: 300px;
  }
  .hero-logo-glow {
    width: 450px;
    height: 450px;
  }
  .hero-logo-glow-secondary {
    width: 330px;
    height: 330px;
  }
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero-visual {
    height: 300px;
  }
  .hero-logo-display {
    width: 260px;
  }
  .hero-logo-glow {
    width: 380px;
    height: 380px;
  }
  .hero-logo-glow-secondary {
    width: 280px;
    height: 280px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }
  nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .portfolio-hero {
    padding: 120px 30px 80px;
  }
  .site-header {
    padding: 20px 30px;
  }
  .portfolio-filter {
    padding: 30px 20px;
  }
  .portfolio-grid {
    padding: 40px 20px;
    gap: 30px;
  }
  .testimonials {
    padding: 80px 30px;
  }
  .cta-section {
    padding: 80px 30px;
  }
  .portfolio-hero h1 {
    font-size: 3.2rem;
  }
  .hero-sub {
    font-size: 1rem;
  }
  .section-title {
    font-size: 2.8rem;
  }
  .cta-container h2 {
    font-size: 2.5rem;
  }
  footer {
    padding: 40px 30px;
  }
  .header-logo-img {
    width: 28px;
    height: 28px;
  }
  .hero-logo-display {
    width: 220px;
  }
  .hero-logo-glow {
    width: 320px;
    height: 320px;
  }
  .hero-logo-glow-secondary {
    width: 240px;
    height: 240px;
  }
  .footer-logo-image {
    width: 90px;
  }
  .preloader-logo-img {
    width: 90px;
  }
}

@media (max-width: 480px) {
  .portfolio-hero h1 {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }
  .filter-container {
    gap: 10px;
  }
  .filter-btn {
    padding: 8px 18px;
    font-size: 0.65rem;
  }
  .item-title {
    font-size: 1.5rem;
  }
  .cta-container h2 {
    font-size: 2rem;
  }
  .hero-logo-display {
    width: 180px;
  }
  .hero-logo-glow {
    width: 260px;
    height: 260px;
  }
  .hero-logo-glow-secondary {
    width: 190px;
    height: 190px;
  }
  .preloader-logo-img {
    width: 70px;
  }
  .footer-logo-image {
    width: 70px;
  }
}