/* ============================================================
   style.css — arrakh.com
   Edit custom properties at the top to change colors/fonts.
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  /* Colors */
  --clr-dark:        #1c1c1c;
  --clr-dark-2:      #252525;   /* card surfaces */
  --clr-dark-3:      #2f2f2f;   /* nested elements */
  --clr-purple:      #a170d9;
  --clr-teal:        #05cab6;
  --clr-gray:        #999;
  --clr-white:       #fff;

  /* Text on dark backgrounds */
  --clr-text:        rgba(255, 255, 255, 0.85);
  --clr-text-muted:  rgba(255, 255, 255, 0.55);
  --clr-border:      rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-body:    'Overpass', sans-serif;
  --font-display: 'Josefin Sans', sans-serif;

  /* Layout */
  --max-width:  1170px;
  --nav-height: 70px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  color: var(--clr-text);
  background: var(--clr-dark);
}

img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
p    { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
em     { font-style: italic; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.3;
  color: var(--clr-white);
}
h2 { font-size: clamp(28px, 4vw, 36px); letter-spacing: -1.5px; }
h3 { font-size: clamp(20px, 3vw, 26px); letter-spacing: -0.5px; }

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 20px;
}

section { padding-block: 72px; }

/* Section header block */
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--clr-teal);
  margin-bottom: 10px;
}

.section-heading {
  margin-bottom: 52px;
}

/* =====================
   NAV
   ===================== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--clr-dark);
  border-bottom: 1px solid var(--clr-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 16px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--clr-white);
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Contact icons — desktop only */
.nav-contact {
  display: none;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .nav-contact { display: flex; }
}

.nav-contact a {
  font-size: 18px;
  color: var(--clr-teal);
  transition: color 0.2s;
}

.nav-contact a:hover { color: var(--clr-purple); }

/* Language switcher button */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px solid var(--clr-border);
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-text);
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.lang-btn:hover { border-color: var(--clr-teal); color: var(--clr-teal); }

.lang-btn img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

/* Hamburger — mobile only */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-white);
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
}

/* Mobile drawer */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--clr-dark-2);
  border-top: 1px solid var(--clr-border);
  padding: 16px 20px;
  gap: 4px;
}

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

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--clr-text);
  padding: 12px 0;
  border-bottom: 1px solid var(--clr-border);
}

.mobile-menu a:last-child { border-bottom: none; }

.mobile-menu a i {
  width: 20px;
  text-align: center;
  color: var(--clr-teal);
  font-size: 16px;
}

@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  background: var(--clr-dark);
  padding-block: 120px 100px;
  text-align: center;
  overflow: hidden;
}

/* Background video: fills hero, dimmed */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 100vh;
  min-width: 100%;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  border: none;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(52px, 14vw, 120px);
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--clr-white);
  line-height: 1;
  margin-bottom: 32px;
}

.hero-tagline {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  margin-inline: auto;
}

/* =====================
   ABOUT
   ===================== */
.about {
  background: var(--clr-dark);
  border-top: 1px solid var(--clr-border);
}

.about-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 260px 1fr;
    align-items: start;
    gap: 64px;
  }
}

.about-photo {
  width: 100%;
  max-width: 260px;
  border-radius: 8px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .about-photo { max-width: 100%; margin-inline: 0; }
}

/* =====================
   SHOWREEL
   ===================== */
.showreel {
  background: var(--clr-dark-2);
  border-block: 1px solid var(--clr-border);
  padding-block: 64px;
  text-align: center;
}

.showreel .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.showreel-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--clr-teal);
}

/* Responsive 16:9 video iframe */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =====================
   PROFESSIONAL PROJECTS
   ===================== */
.projects-professional {
  background: var(--clr-dark);
  border-top: 1px solid var(--clr-border);
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.project-card {
  background: var(--clr-dark-2);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--clr-border);
}

/* Mobile: image stacked above video */
.project-media {
  display: flex;
  flex-direction: column;
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Inline project video */
.project-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.project-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.project-body {
  padding: 32px;
}

.project-title { margin-bottom: 6px; }

.project-meta {
  font-size: 14px;
  color: var(--clr-text-muted);
  margin-bottom: 20px;
}

.project-description {
  margin-bottom: 20px;
  color: var(--clr-text);
}

.project-role {
  font-weight: 700;
  color: var(--clr-teal);
  margin-bottom: 12px;
}

.project-bullets {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--clr-text);
  font-size: 15px;
}

.project-link {
  color: var(--clr-teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-link:hover { color: var(--clr-purple); }

/* Desktop: media on left (60%), text on right (40%) */
@media (min-width: 768px) {
  .project-card {
    display: grid;
    grid-template-columns: 3fr 2fr;
  }

  .project-media { min-height: 480px; }

  .project-image {
    flex: 1;
    height: 50%;
    min-height: 240px;
    aspect-ratio: unset;
    object-fit: cover;
  }

  .project-video {
    padding-bottom: 0;
    flex: 1;
    min-height: 240px;
  }

  .project-video iframe {
    position: static;
    width: 100%;
    height: 100%;
  }
}

/* =====================
   PERSONAL PROJECTS
   ===================== */
.projects-personal {
  background: var(--clr-dark-2);
  border-top: 1px solid var(--clr-border);
}

.personal-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 600px) {
  .personal-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .personal-grid { grid-template-columns: repeat(3, 1fr); }
}

.personal-card {
  background: var(--clr-dark-3);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.personal-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.personal-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.personal-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 10px;
}

.personal-card-desc {
  font-size: 14px;
  color: var(--clr-text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 14px;
}

/* =====================
   TESTIMONIALS
   ===================== */
.testimonials {
  background: var(--clr-dark);
  border-top: 1px solid var(--clr-border);
}

.testimonials-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

.testimonial-card {
  background: var(--clr-dark-2);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.testimonial-quote {
  font-style: italic;
  line-height: 1.8;
  color: var(--clr-text);
  flex: 1;
}

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

.testimonial-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--clr-white);
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: 13px;
  color: var(--clr-text-muted);
}

/* =====================
   FOOTER / CONTACT
   ===================== */
footer {
  background: var(--clr-dark-2);
  border-top: 1px solid var(--clr-border);
  padding-block: 72px;
  text-align: center;
}

.footer-heading {
  margin-bottom: 44px;
  color: var(--clr-white);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--clr-text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
}

.contact-link i {
  font-size: 30px;
  color: var(--clr-teal);
  transition: color 0.2s;
}

.contact-link:hover,
.contact-link:hover i {
  color: var(--clr-purple);
}

.footer-credit {
  font-size: 13px;
  color: var(--clr-text-muted);
}
