/*
Theme Name: Creative Freelancer Dark
Theme URI: https://yourname.com
Author: Your Name
Author URI: https://yourname.com
Description: A dark and bold personal branding theme for freelancers and creatives. Features gold accents on a dark background with smooth animations.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: creative-freelancer-dark
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black: #0a0a0a;
  --dark: #111111;
  --dark2: #1a1a1a;
  --gold: #d4a017;
  --gold-light: #f0c040;
  --gold-dark: #b8860b;
  --white: #ffffff;
  --gray: #888888;
  --light-gray: #cccccc;
  --font-main: 'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold-light); }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title span { color: var(--gold); }

.section-subtitle {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 60px;
  max-width: 600px;
}

.section-header { margin-bottom: 60px; }

section { padding: 100px 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212,160,23,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}

/* ===== NAVIGATION ===== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
  background: transparent;
}

#site-header.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(212,160,23,0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
}
.site-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 35px;
}

.nav-links a {
  color: var(--light-gray);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta { margin-left: 20px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(212,160,23,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 10% 80%, rgba(212,160,23,0.05) 0%, transparent 50%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(212,160,23,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(212,160,23,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 120px 30px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,160,23,0.1);
  border: 1px solid rgba(212,160,23,0.3);
  color: var(--gold);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 25px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title .gold-text { color: var(--gold); }

.hero-title .outline-text {
  -webkit-text-stroke: 2px var(--gold);
  color: transparent;
}

.hero-description {
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 50px; }

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.stat-item .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.hero-image-area {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
}

.hero-image-ring {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 2px dashed rgba(212,160,23,0.3);
  animation: rotate 20s linear infinite;
}

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

.hero-image-ring::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateX(-50%);
}

.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  position: relative;
  z-index: 1;
}

.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dark2), var(--dark));
  border: 3px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-photo-placeholder .placeholder-icon {
  font-size: 5rem;
  margin-bottom: 10px;
  opacity: 0.5;
}

.hero-photo-placeholder p {
  color: var(--gray);
  font-size: 0.85rem;
}

.floating-tag {
  position: absolute;
  background: var(--dark2);
  border: 1px solid rgba(212,160,23,0.3);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.floating-tag.tag-1 { bottom: 20px; left: -30px; }
.floating-tag.tag-2 { top: 40px; right: -40px; color: var(--gold); }
.floating-tag .tag-icon { font-size: 1.2rem; }

/* ===== ABOUT ===== */
#about {
  background: var(--dark);
}

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

.about-image-box {
  position: relative;
}

.about-image-frame {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--dark2), #222);
  border-radius: 20px;
  border: 1px solid rgba(212,160,23,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  overflow: hidden;
  position: relative;
}

.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-accent-box {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--black);
}

.about-accent-box .accent-num {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.about-accent-box .accent-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.about-content .tag {
  display: inline-block;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.about-content p {
  color: var(--light-gray);
  margin-bottom: 20px;
  font-size: 1rem;
}

.about-info-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 30px 0;
}

.about-info-list li {
  font-size: 0.9rem;
  color: var(--light-gray);
}

.about-info-list li strong {
  color: var(--gold);
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

/* ===== SKILLS ===== */
#skills { background: var(--black); }

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

.skills-text .section-subtitle { margin-bottom: 30px; }

.skills-list { list-style: none; }

.skills-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--light-gray);
  display: flex;
  align-items: center;
  gap: 12px;
}

.skills-list li::before {
  content: '▸';
  color: var(--gold);
}

.skill-bars { }

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

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-name { font-weight: 600; font-size: 0.95rem; }
.skill-percent { color: var(--gold); font-weight: 700; font-size: 0.9rem; }

.skill-bar-track {
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 10px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 10px;
  transition: width 1.5s ease;
}

/* ===== SERVICES ===== */
#services { background: var(--dark); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--dark2);
  border: 1px solid rgba(212,160,23,0.1);
  border-radius: 20px;
  padding: 40px 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  border-color: rgba(212,160,23,0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

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

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

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

.service-link {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-link:hover { gap: 10px; }

/* ===== PORTFOLIO ===== */
#portfolio { background: var(--black); }

.portfolio-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.filter-btn {
  padding: 8px 22px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--gray);
  border-radius: 50px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-main);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  font-weight: 600;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.portfolio-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--dark2);
  border: 1px solid rgba(212,160,23,0.1);
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--dark2), #222);
}

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

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

.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-item:hover img { transform: scale(1.05); }

.portfolio-overlay h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; }
.portfolio-overlay p { color: var(--gold); font-size: 0.85rem; font-weight: 500; }

/* ===== TESTIMONIALS ===== */
#testimonials { background: var(--dark); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.testimonial-card {
  background: var(--dark2);
  border: 1px solid rgba(212,160,23,0.1);
  border-radius: 20px;
  padding: 35px 30px;
  position: relative;
}

.quote-mark {
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.15;
  position: absolute;
  top: 10px;
  right: 20px;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 20px; letter-spacing: 3px; }

.testimonial-text {
  color: var(--light-gray);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 30px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
  flex-shrink: 0;
}

.author-info .author-name { font-weight: 700; font-size: 0.95rem; }
.author-info .author-role { color: var(--gray); font-size: 0.82rem; }

/* ===== CONTACT ===== */
#contact { background: var(--black); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-subtitle { margin-bottom: 40px; }

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(212,160,23,0.1);
  border: 1px solid rgba(212,160,23,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-detail strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 4px;
}

.contact-detail span { color: var(--light-gray); font-size: 0.95rem; }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}

.social-link {
  width: 44px;
  height: 44px;
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 1.1rem;
  transition: all 0.3s;
  text-decoration: none;
}

.social-link:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  transform: translateY(-3px);
}

/* ===== CONTACT FORM ===== */
.contact-form-wrapper {
  background: var(--dark);
  border: 1px solid rgba(212,160,23,0.15);
  border-radius: 24px;
  padding: 45px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--white);
  padding: 14px 18px;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,160,23,0.1);
}

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

.form-group select option { background: var(--dark2); }

/* ===== FOOTER ===== */
#site-footer {
  background: var(--dark);
  border-top: 1px solid rgba(212,160,23,0.1);
  padding: 60px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 30px;
}

.footer-brand .site-logo { display: inline-block; margin-bottom: 15px; }

.footer-brand p { color: var(--gray); font-size: 0.92rem; max-width: 300px; }

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--gray); font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p { color: var(--gray); font-size: 0.85rem; }
.footer-bottom span { color: var(--gold); }

/* ===== SCROLL TO TOP ===== */
#scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: var(--gold);
  color: var(--black);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 999;
}

#scroll-top.visible { opacity: 1; pointer-events: all; }
#scroll-top:hover { background: var(--gold-light); transform: translateY(-3px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid, .portfolio-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 120px;
  }

  .hero-image-area { order: -1; }
  .hero-image-wrapper { width: 260px; height: 260px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .floating-tag { display: none; }

  .about-grid, .skills-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid, .portfolio-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: 30px 20px; }

  section { padding: 70px 0; }
}
