@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&display=swap');

/* =============================================================
   frankfarukceviz.uk — D-Summery Design System
   ============================================================= */

:root {
  --bg-color: #fcfcfc;
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-tertiary: #888888;
  --accent-color: #000000;
  --border-color: #e2e2e2;
  --font-family: 'Inter', sans-serif;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;

  --nav-height: 80px;
  --section-pad: 80px 24px;
  --max-w: 1200px;
  --ease: 0.2s ease;
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  text-align: left;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
}

/* Reusable buttons matching D-Summery .add-post-btn style */
.btn {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--font-family);
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn:hover {
  background: var(--text-primary);
  color: #fff;
}

/* Overriding old button modifiers to keep the unified clean look */
.btn--outline, .btn--white, .btn--teal, .btn--dark {
  /* Flattened styling */
}

/* =============================================================
   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;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--ease), box-shadow var(--ease);
}

.navbar__logo-img {
  height: 36px;
  width: auto;
  display: block;
  filter: invert(1); /* Makes the original white logo black */
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.navbar__link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--ease);
  position: relative;
  padding-bottom: 4px;
}

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

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

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

.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(--text-primary);
  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 
   ============================================================= */
.hero {
  min-height: 100vh;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-height) 24px 0;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

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

.hero__image-wrapper {
  width: 210px;
  height: 210px;
  margin: 0 auto 36px;
  overflow: hidden;
  border-radius: 0; 
  /* Removed strong box-shadow for D-Summery minimalist look */
}

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

.hero__name {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
  line-height: 1.15;
}

.hero__subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-md);
}

.hero__subtitle-link {
  transition: color var(--ease);
}
.hero__subtitle-link:hover {
  color: var(--text-primary);
}

/* =============================================================
   ABOUT
   ============================================================= */
.about {
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border-color);
}

.about__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

@media (min-width: 1024px) {
  .about__inner {
    flex-direction: row;
    gap: 72px;
  }
  .about__heading {
    flex: 1;
  }
  .about__bio {
    flex: 2;
  }
}

.about__heading h2 {
  font-size: 1.25rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0; 
}

.about__bio p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

/* =============================================================
   PORTFOLIO
   ============================================================= */
.portfolio {
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border-color);
}

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

.portfolio__title {
  font-size: 1.25rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portfolio__subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-lg);
}

.portfolio__grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

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

.portfolio__item {
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--spacing-md);
}

.portfolio__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #f0f0f0;
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

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

.portfolio__item:hover .portfolio__thumb img {
  filter: grayscale(0%);
}

.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__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portfolio__label {
  font-size: 0.85rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* =============================================================
   MUSIC / SOUNDCLOUD
   ============================================================= */
.music {
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border-color);
}

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

.music__title {
  font-size: 1.25rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.music__sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-lg);
}

.music__embed {
  width: 100%;
}

.music__embed-credit {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 6px;
  text-align: left;
}

.music__embed-credit a:hover {
  color: var(--text-primary);
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  padding: var(--spacing-xl) 24px;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.footer__logo {
  height: 44px;
  filter: invert(1);
  margin-bottom: var(--spacing-sm);
}

.footer__name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--spacing-lg);
}

.footer__navlink {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--ease);
}

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

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.footer__newsletter p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-md);
}

.footer__form {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.footer__input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  flex: 1;
}

.footer__input::placeholder {
  color: var(--text-tertiary);
}

.footer__form button {
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}

.footer__msg {
  font-size: 0.8rem;
  margin-top: 10px;
  color: var(--text-secondary);
}

/* =============================================================
   LESSONS PAGE
   ============================================================= */
.lessons-header {
  padding: calc(var(--nav-height) + var(--spacing-xl)) 24px var(--spacing-xl);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.lessons-header__title {
  font-size: 2.5rem;
  color: var(--text-primary);
}

.lessons-section {
  padding: var(--section-pad);
  border-bottom: 1px solid var(--border-color);
}

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

.lessons-section__title {
  font-size: 1.25rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lessons-list {
  padding-left: 0;
}

.lessons-list li {
  color: var(--text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  list-style-position: inside;
}

.lessons-list li:last-child {
  border-bottom: none;
}

/* Overriding old specific modifier colors */
.lessons-section--white, .lessons-section--teal {
  background: var(--bg-color);
}
.lessons-section--teal .lessons-section__title,
.lessons-section--white .lessons-section__title {
  color: var(--text-primary);
}
.lessons-section--teal .lessons-list li,
.lessons-section--white .lessons-list li {
  color: var(--text-secondary);
}

/* =============================================================
   APPS PAGE
   ============================================================= */
.apps-header {
  padding: calc(var(--nav-height) + var(--spacing-xl)) 24px var(--spacing-xl);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.apps-header__title {
  font-size: 2.5rem;
  color: var(--text-primary);
}

.apps-header__sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--spacing-md);
}

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

.apps-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

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

.app-card {
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.app-card__icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

.app-card__title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.app-card__desc {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  font-size: 1rem;
  line-height: 1.6;
  flex: 1; /* Pushes link to bottom */
}

.app-card__link {
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: 4px;
  align-self: flex-start;
  transition: opacity var(--ease);
}

.app-card__link:hover {
  opacity: 0.6;
}

/* =============================================================
   RESPONSIVE — Mobile Adjustments for Navbar
   ============================================================= */
@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__menu {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
  }

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

  .navbar__link {
    display: block;
    padding: 14px 28px;
    text-align: center;
  }

  .navbar__link::after {
    display: none;
  }
}