/* =============================================
   Profile — Bimoody Digital Studio
   Clean, professional, single-page layout
   ============================================= */

/* --- Variables --- */
:root {
  --bg:        #0f0f0f;
  --bg-alt:    #161616;
  --surface:   #1c1c1c;
  --border:    rgba(255,255,255,0.07);
  --text:      #b0b0b0;
  --heading:   #f0f0f0;
  --accent:    #cc0000;
  --accent-hv: #e60000;
  --white:     #ffffff;
  --font-body: 'Poppins', sans-serif;
  --font-head: 'Raleway', sans-serif;
  --radius:    10px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hv); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.25;
}

/* --- Preloader --- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s;
}
#preloader::after {
  content: '';
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: transparent;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(15,15,15,0.97);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
}
.nav-links a {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.nav-active {
  color: var(--white);
  background: var(--accent);
}

.nav-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--heading);
  font-size: 1.25rem;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: none;
}

@media (max-width: 991px) {
  .nav-toggle { display: flex; align-items: center; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(15,15,15,0.97);
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border);
    gap: 2px;
  }
  .nav-links.open { display: flex; }
}

/* --- Section Shared --- */
.section-pad { padding: 90px 0; }
.section-alt  { background: var(--bg-alt); }

.section-title {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title h2 {
  font-size: 2.25rem;
  font-weight: 800;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 0;
  width: 48px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.82) 0%, rgba(20,0,0,0.7) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }

.hero-avatar {
  width: 130px; height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  margin: 0 auto;
  box-shadow: 0 0 0 6px rgba(204,0,0,0.15);
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-top: 16px;
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--text);
  min-height: 2em;
  margin-top: 8px;
}
.hero-sub .typed { border-bottom: 2px solid var(--accent); color: var(--white); }

.hero-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.hero-socials a {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  font-size: 1.1rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.hero-socials a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  padding: 12px 32px;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition);
}
.hero-cta:hover {
  background: var(--accent-hv);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- About --- */
.about-photo {
  width: 280px; height: 280px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.about-heading {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.about-lead {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 8px;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.about-list li:last-child { border-bottom: none; }
.about-list i { color: var(--accent); font-size: 0.75rem; flex-shrink: 0; }
.about-list strong { color: var(--heading); white-space: nowrap; }

.badge-available {
  background: rgba(204,0,0,0.15);
  color: var(--accent);
  border: 1px solid rgba(204,0,0,0.3);
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.about-stats {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-head);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Skills --- */
.skill-item { margin-bottom: 28px; }
.skill-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}
.skill-bar {
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* --- Portfolio --- */
.portfolio-filters {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  padding: 0;
}
.portfolio-filters li {
  cursor: pointer;
  padding: 7px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.portfolio-filters li:hover,
.portfolio-filters li.filter-active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}
.portfolio-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio-card:hover img { transform: scale(1.06); }

.portfolio-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.72);
  opacity: 0;
  display: flex; align-items: flex-end;
  padding: 20px;
  transition: opacity 0.35s ease;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-overlay-content h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--white);
}
.portfolio-overlay-content p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}
.portfolio-overlay-content a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 1rem;
  transition: background var(--transition);
}
.portfolio-overlay-content a:hover { background: var(--accent-hv); }

/* --- Services --- */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  height: 100%;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.35);
}
.service-icon {
  width: 56px; height: 56px;
  background: rgba(204,0,0,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: background var(--transition);
}
.service-icon i {
  font-size: 1.4rem;
  color: var(--accent);
  transition: color var(--transition);
}
.service-card:hover .service-icon { background: var(--accent); }
.service-card:hover .service-icon i { color: var(--white); }
.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text);
  margin: 0;
}

/* --- Contact --- */
.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.contact-info > p {
  font-size: 0.9rem;
  margin-bottom: 28px;
  color: var(--text);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-item > i {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(204,0,0,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}
.contact-item:hover > i { background: var(--accent); color: var(--white); }
.contact-item h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
  color: var(--heading);
}
.contact-item p, .contact-item a {
  font-size: 0.875rem;
  color: var(--text);
  margin: 0;
}
.contact-item a:hover { color: var(--accent); }

.contact-socials {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}
.contact-socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  font-size: 1rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.contact-socials a:hover {
  background: var(--accent); color: var(--white); border-color: var(--accent);
}

/* Contact Form */
.contact-form .form-control {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--heading);
  padding: 12px 16px;
  font-size: 0.875rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
}
.contact-form .form-control:focus {
  outline: none;
  box-shadow: none;
  border-color: var(--accent);
  background: var(--surface);
  color: var(--heading);
}
.contact-form .form-control::placeholder { color: rgba(176,176,176,0.45); }
.contact-form textarea.form-control { resize: vertical; }

.btn-send {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  font-family: var(--font-body);
}
.btn-send:hover { background: var(--accent-hv); transform: translateY(-1px); }

.loading, .error-message, .sent-message {
  display: none;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 16px;
}
.loading { background: var(--surface); color: var(--text); }
.error-message { background: rgba(223,21,41,0.15); color: #ff6b6b; }
.sent-message { background: rgba(5,150,82,0.15); color: #4cda91; }

/* --- Footer --- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0 30px;
  text-align: center;
}
.footer-brand {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 8px;
}
.footer-brand span { color: var(--accent); }
.footer-tagline {
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 6px;
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(176,176,176,0.45);
  margin: 0;
}

/* --- Scroll Top --- */
.scroll-top {
  position: fixed;
  right: 20px; bottom: -40px;
  width: 42px; height: 42px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  z-index: 999;
  transition: bottom 0.3s, opacity 0.3s, background var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.scroll-top.active { bottom: 20px; opacity: 1; }
.scroll-top:hover { background: var(--accent-hv); color: var(--white); }

/* --- Responsive --- */
@media (max-width: 767px) {
  .section-pad { padding: 64px 0; }
  .about-photo { width: 200px; height: 200px; }
  .hero h1 { font-size: 2.25rem; }
  .stat-num { font-size: 1.75rem; }
}
