/* =============================================================
   frankfarukceviz.uk — Global Stylesheet
   ============================================================= */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* ----- CSS Variables ----- */
:root {
  --dark: #111214;
  --dark-alt: #1b1d1f;
  --teal: #5bbfc0;
  --teal-dark: #49adb0;
  --coral: #e0526a;
  --white: #ffffff;
  --light-bg: #f5f6f8;
  --text-muted: #666;
  --nav-height: 64px;
  --section-pad: 88px 24px;
  --max-w: 1140px;
  --radius: 8px;
  --ease: 0.25s ease;
}

/* ----- Utilities ----- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn--teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn--teal:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.btn--outline {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
}

.btn--outline:hover {
  background: var(--teal);
  color: var(--white);
}

.btn--dark {
  background: var(--dark);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--dark:hover {
  border-color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--coral);
  border-color: var(--white);
  font-weight: 700;
}

.btn--white:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
}


/* =============================================================
   NAVBAR
   ============================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: background var(--ease), box-shadow var(--ease);
}

.navbar--dark {
  background: var(--dark);
}

.navbar--teal {
  background: var(--teal);
}

.navbar.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 1;
  transition: opacity var(--ease);
}

.navbar__logo:hover {
  opacity: 0.75;
}

.navbar__logo-img {
  height: 36px;
  width: auto;
  display: block;
}

/* Menu */
.navbar__menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.navbar__link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--ease);
  position: relative;
  padding-bottom: 4px;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width var(--ease);
}

.navbar--teal .navbar__link::after {
  background: var(--white);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--white);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.navbar__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.is-open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.navbar__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* =============================================================
   HERO — Home page
   ============================================================= */
.hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-height) 24px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(91, 191, 192, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 40px 0 60px;
}

.hero__image-wrapper {
  width: 210px;
  height: 210px;
  margin: 0 auto 36px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7);
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
}

.hero__name {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.015em;
  margin-bottom: 18px;
  line-height: 1.15;
}

.hero__subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
}

.hero__subtitle-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.hero__subtitle-link:hover {
  opacity: 0.7;
}


/* =============================================================
   ABOUT
   ============================================================= */
.about {
  padding: var(--section-pad);
  background: var(--white);
}

.about__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  align-items: start;
}

.about__heading h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

.about__bio p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 18px;
}

.about__bio p:last-child {
  margin-bottom: 0;
}


/* =============================================================
   PORTFOLIO
   ============================================================= */
.portfolio {
  padding: var(--section-pad);
  background: var(--dark-alt);
}

.portfolio__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.portfolio__title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 12px;
}

.portfolio__subtitle {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 52px;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.portfolio__item {
  background: #222426;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}

.portfolio__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.portfolio__link {
  display: block;
  color: inherit;
}

.portfolio__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.portfolio__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--ease), transform var(--ease);
}

.portfolio__item:hover .portfolio__thumb img {
  opacity: 0.65;
  transform: scale(1.03);
}

.portfolio__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--ease);
}

.portfolio__item:hover .portfolio__play {
  opacity: 1;
}

.portfolio__play svg {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.portfolio__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.portfolio__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  font-weight: 700;
}

.portfolio__yticon {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
}


/* =============================================================
   MUSIC / SOUNDCLOUD
   ============================================================= */
.music {
  padding: var(--section-pad);
  background: var(--teal);
  text-align: center;
}

.music__inner {
  max-width: 820px;
  margin: 0 auto;
}

.music__title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 12px;
}

.music__sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.music__embed {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

.music__embed-credit {
  font-size: 10px;
  color: #ccc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: Interstate, 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif;
  font-weight: 100;
  margin-top: 6px;
  text-align: left;
}

.music__embed-credit a {
  color: #ccc;
  text-decoration: none;
}

.music__embed-credit a:hover {
  text-decoration: underline;
}


/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  background: var(--coral);
  padding: 60px 24px 36px;
  color: var(--white);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.footer__logo {
  height: 44px;
  width: auto;
  display: block;
  margin-bottom: 10px;
}

.footer__name {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.footer__nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.footer__navlink {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--ease);
}

.footer__navlink:hover {
  color: var(--white);
}

.footer__copy {
  font-size: 0.78rem;
  opacity: 0.6;
}

.footer__newsletter p {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 18px;
}

.footer__form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer__input {
  flex: 1;
  min-width: 0;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  outline: none;
  transition: background var(--ease), border-color var(--ease);
}

.footer__input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.footer__input:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

.footer__msg {
  font-size: 0.8rem;
  margin-top: 10px;
  opacity: 0;
  transition: opacity var(--ease);
}

.footer__msg.visible {
  opacity: 1;
}


/* =============================================================
   LESSONS PAGE
   ============================================================= */
.lessons-header {
  padding: calc(var(--nav-height) + 56px) 24px 56px;
  background: var(--dark);
  text-align: center;
}

.lessons-header .container {
  max-width: var(--max-w);
}

.lessons-header__title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.lessons-section {
  padding: var(--section-pad);
}

.lessons-section--white {
  background: var(--white);
}

.lessons-section--teal {
  background: var(--teal);
}

.lessons-section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.lessons-section__title {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.lessons-section--white .lessons-section__title {
  color: var(--dark);
}

.lessons-section--teal .lessons-section__title {
  color: var(--white);
}

.lessons-list {
  list-style: decimal;
  padding-left: 22px;
  columns: 1;
}

.lessons-list li {
  padding: 7px 0;
  font-size: 0.95rem;
  line-height: 1.55;
  break-inside: avoid;
}

.lessons-section--white .lessons-list li {
  color: #333;
}

.lessons-section--teal .lessons-list li {
  color: rgba(255, 255, 255, 0.92);
}


/* =============================================================
   APPS PAGE
   ============================================================= */
.apps-header {
  padding: calc(var(--nav-height) + 56px) 24px 56px;
  background: var(--dark);
  text-align: center;
}

.apps-header__title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.apps-header__sub {
  color: rgba(255, 255, 255, 0.45);
  margin-top: 14px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.apps-section {
  padding: var(--section-pad);
  background: var(--light-bg);
}

.apps-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.app-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: transform var(--ease), box-shadow var(--ease);
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.12);
}

.app-card__icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 18px;
}

.app-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.app-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 20px;
}

.app-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: gap var(--ease), color var(--ease);
}

.app-card__link:hover {
  gap: 10px;
  color: var(--teal-dark);
}


/* =============================================================
   RESPONSIVE — Tablet & Mobile
   ============================================================= */

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

@media (max-width: 768px) {
  :root {
    --section-pad: 60px 20px;
    --nav-height: 60px;
  }

  .navbar {
    padding: 0 20px;
  }

  /* Show hamburger */
  .navbar__hamburger {
    display: flex;
  }

  /* Dropdown menu */
  .navbar__menu {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
    padding: 0;
  }

  .navbar--teal .navbar__menu {
    background: var(--teal-dark);
  }

  .navbar__menu.is-open {
    max-height: 300px;
    padding: 8px 0 16px;
  }

  .navbar__menu li {
    width: 100%;
  }

  .navbar__link {
    display: block;
    padding: 14px 28px;
    font-size: 0.9rem;
  }

  .navbar__link::after {
    display: none;
  }

  /* About: stack columns */
  .about__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Portfolio: single column */
  .portfolio__grid {
    grid-template-columns: 1fr;
  }

  /* Footer: stack columns */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Hero image */
  .hero__image-wrapper {
    width: 170px;
    height: 170px;
  }
}