/* ===================================
   FONT IMPORTS
   =================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Holtwood+One+SC&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Questrial&display=swap');

/* ===================================
   CUSTOM FONT FACES
   =================================== */
@font-face {
  font-family: 'Lexend';
  src: url('fonts/Lexend-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Lexend';
  src: url('fonts/Lexend-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Lexend';
  src: url('fonts/Lexend-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Righteous';
  src: url('fonts/Righteous-Regular.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: "SF-Pro-Display";
  src: url('fonts/SF-Pro-Display.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'SF Pro Display';
  src: local('SF Pro Display'), local('-apple-system'), local('BlinkMacSystemFont');
  font-weight: 100 900;
  font-style: normal;
}

/* ===================================
   CSS VARIABLES
   =================================== */
:root {
  --sf-pro: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ===================================
   BASE STYLES
   =================================== */
body {
  margin: 0;
  padding: 20px;
  padding-top: 85px;
  background-color: #1a1a1a;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.main-container {
  background-color: #1a1a1a;
  width: 100%;
  max-width: 1400px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* ===================================
   HEADER
   =================================== */
.main-header {
  background-color: #d9d9d9;
  padding: 5px 30px;
  min-height: 55px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
}

.fa-phone, 
.fa-envelope {
  color: #343434;
}

.header-content {
  display: flex;
  position: relative;
  justify-content: flex-end;
  align-items: center;
  min-height: 60px;
}

.logo-top {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 50px;
  margin: 0;
  color: #7765E3;
  font-family: 'Righteous';
  font-weight: 400;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo-top:hover {
  color: #5a4db8;
}

.contact-icons a {
  color: #343434;
  font-size: 1.2rem;
  margin-left: 40px;
  text-decoration: none;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.hero-text {
  flex: 1;
  font-family: 'Lexend';
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.highlight {
  color: #7765E3;
}

.cta-button {
  background-color: transparent;
  color: #d0d0d0;
  padding: 12px 25px;
  border: 2px solid #fff;
  text-decoration: none;
  margin-top: 40px;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #7765E3;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.cta-button:hover {
  color: #fff;
  border-color: #7765E3;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(119, 101, 227, 0.4);
}

.cta-button:hover::before {
  left: 0;
}

.hero-image-container {
  flex-shrink: 0;
}

.hero-image {
  width: 450px;
  height: auto;
  display: block;
}

/* ===================================
   FOOTER LOGOS
   =================================== */
.footer-logos {
  background-color: #d9d9d9;
  padding: 10px 0;
  margin-top: 30px;
  overflow: hidden;
  position: relative;
  width: 100%;
  left: 0;
  right: 0;
}

.logos-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: scroll-logos 20s linear infinite;
}

.logo-text {
  color: #7765e3;
  font-size: 1.7rem;
  font-weight: 700;
  padding: 0 40px;
  font-family: 'Righteous';
  display: inline-block;
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===================================
   FILTER SECTION
   =================================== */
.filter-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 60px;
  padding: 0 20px;
  margin-bottom: 60px;
}

.filter-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.filter-btn {
  font-family: 'Lexend', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  padding: 10px 24px;
  background-color: transparent;
  color: #999;
  border: 1px solid #444;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 20px;
}

.filter-btn:hover {
  color: #fff;
  border-color: #666;
  background-color: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
  background-color: #7765E3;
  color: #fff;
  border-color: #7765E3;
  box-shadow: 0 4px 15px rgba(119, 101, 227, 0.4);
}

.project-container.hidden {
  display: none;
  opacity: 0;
}

/* ===================================
   PROJECT CONTAINERS
   =================================== */
.project-container {
  width: 100%;
  max-width: 1400px;
  margin-top: 50px;
  padding: 0 20px;
  box-sizing: border-box;
}

.project-mockup {
  display: flex;
  flex-direction: column;
  padding-top: 50px;
  margin-bottom: 50px;
}

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

.project-number {
  font-family: 'Righteous';
  margin: 0 0 10px 0;
  font-size: 3rem;
  color: #fff;
}

.project-name {
  margin: 0 0 40px 0;
  font-family: 'Lexend';
  font-weight: 300;
  font-size: 2rem;
  color: #fff;
}

.project-row {
  display: flex;
  flex-direction: row;
  gap: 160px;
  margin-bottom: 50px;
}

.project-row.logo-typography-row {
  margin-top: 80px;
  margin-bottom: 80px;
}

.project-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

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

.project-section h1 {
  font-family: 'Inter', system-ui, sans-serif;
  margin: 0 0 10px 0;
  font-size: 2rem;
}

/* ===================================
   PROJECT IMAGE HOVER EFFECTS
   =================================== */
.project-mockup img,
.project-section img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.project-mockup img:hover,
.project-section img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(119, 101, 227, 0.5);
}

.hero-image,
.logo-showcase img {
  transition: none !important;
}

.hero-image:hover,
.logo-showcase img:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* ===================================
   TYPOGRAPHY SECTIONS
   =================================== */
.typography-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  align-items: flex-start;
  justify-content: center;
}

.typography-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.font-samples {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.font-samples p {
  margin: 0;
  line-height: 1.3;
}

.big-font {
  font-size: 250px;
  font-weight: 900;
  margin: 0;
  line-height: 0.8;
}

/* Project 1 Typography */
.typography1 .font-name { 
  font-family: var(--sf-pro); 
  font-size: 80px; 
  font-weight: 700; 
}
.typography1 .font-light { 
  font-family: var(--sf-pro); 
  font-size: 24px; 
  font-weight: 200; 
}
.typography1 .font-regular { 
  font-family: var(--sf-pro); 
  font-size: 24px; 
  font-weight: 400; 
}
.typography1 .font-medium { 
  font-family: var(--sf-pro); 
  font-size: 24px; 
  font-weight: 500; 
}
.typography1 .font-bold { 
  font-family: var(--sf-pro); 
  font-size: 24px; 
  font-weight: 700; 
}
.typography1 .font-black { 
  font-family: var(--sf-pro); 
  font-size: 24px; 
  font-weight: 900; 
}
.typography1 .big-font { 
  font-family: var(--sf-pro); 
}

/* Project 2 Typography */
.typography2 .font-name { 
  font-family: "Holtwood One SC", serif; 
  font-size: 36px; 
  font-weight: 400; 
}
.typography2 .font-regular { 
  font-family: "Holtwood One SC", serif; 
  font-size: 24px; 
  font-weight: 400; 
}
.typography2 .big-font { 
  font-family: "Holtwood One SC", serif; 
  font-size: 150px; 
}

/* Project 3 Typography */
.typography3 .font-name { 
  font-family: "Questrial", sans-serif; 
  font-size: 36px; 
  font-weight: 700; 
}
.typography3 .font-regular { 
  font-family: "Questrial", sans-serif; 
  font-size: 24px; 
  font-weight: 400; 
}
.typography3 .big-font { 
  font-family: "Questrial", sans-serif; 
  font-size: 150px; 
}
.typography3 .font-samples { 
  gap: 40px;
}
.typography3 .typography-container { 
  gap: 90px;
}

/* ===================================
   COLOR PALETTES
   =================================== */
.color-palette-container {
  width: 100%;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.color-palette {
  display: flex;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-height: 200px;
}

.color-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 30px 25px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.color-block:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.color-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.color-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.color-codes {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.color-code {
  font-weight: 400;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Courier New', monospace;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(10px);
}

/* Project 1 Colors */
.color-palette1 .color-primary {
  background: linear-gradient(135deg, #FF0040 0%, #E6003A 100%);
}

.color-palette1 .color-secondary {
  background: linear-gradient(135deg, #2A2D3E 0%, #1F2235 100%);
}

/* Project 2 Colors */
.color-palette2 .color-primary {
  background: linear-gradient(135deg, #FF9220 0%, #E6820A 100%);
}

.color-palette2 .color-secondary {
  background: linear-gradient(135deg, #412500 0%, #2D1800 100%);
}

/* Project 3 Colors */
.color-palette3 .color-primary {
  background: linear-gradient(135deg, #FF9220 0%, #E6820A 100%);
}

.color-palette3 .color-secondary {
  background: linear-gradient(135deg, #2E333D 0%, #1F2235 100%);
}

/* ===================================
   SCROLL FADE-IN ANIMATIONS
   =================================== */
.fade-in-element {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-element:nth-child(1) { transition-delay: 0.15s; }
.fade-in-element:nth-child(2) { transition-delay: 0.25s; }
.fade-in-element:nth-child(3) { transition-delay: 0.35s; }
.fade-in-element:nth-child(4) { transition-delay: 0.45s; }

/* ===================================
   RESPONSIVE: TABLET (769px - 1024px)
   =================================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-image {
    width: 250px;
  }
  
  .project-row {
    gap: 20px;
  }
  
  .big-font {
    font-size: 180px;
  }

  .cta-button {
    max-width: 300px;
    max-height: 20px;
  }

  .typography1 .font-name {
    font-size: 50px;
  }
  
  .typography1 .font-light,
  .typography1 .font-regular,
  .typography1 .font-medium,
  .typography1 .font-bold,
  .typography1 .font-black {
    font-size: 18px;
  }
  
  .typography1 .big-font {
    font-size: 100px;
  }

  .typography2 .font-name { 
    font-size: 28px;
  }
  
  .typography2 .font-regular { 
    font-size: 18px;
  }
  
  .typography2 .big-font { 
    font-size: 50px;
  }

  .typography2 {
    flex-direction: column;
  }

  .typography3 .big-font {
    font-size: 100px;
  }

  .typography3 .font-name {
    font-size: 28px;
  }

  .typography3 .typography-container {
    gap: 10px;
    margin-left: 40px;
  }

  #project-container5-6 {
    margin-top: 60px;
  }

  #project-container5-6 .project-row {
    align-items: flex-start;
  }

  .footer-logos {
    width: 100%;
    max-width: 100%;
    margin: 30px 0 0 0;
    padding: 10px 5px;
    flex-wrap: nowrap;
    gap: 5px;
    overflow: hidden;
  }

  h1[style*="font-size: 8rem"] {
    width: 100%;
    text-align: center;
    align-self: center;
    font-size: 5rem !important;
  }  
}

/* ===================================
   RESPONSIVE: MOBILE (480px - 768px)
   =================================== */
@media (max-width: 768px) {
  body {
    padding-top: 75px;
  }
  
  .hero-image-container {
    display: none;
  }
  
  .hero-section {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-title {
    font-size: 3.2rem;
  }
  
  .main-header {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 5px 15px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  
  .header-content {
    justify-content: space-between;
    padding: 0;
  }
  
  .logo-top {
    position: static;
    transform: none;
    font-size: 35px;
    left: auto;
  }
  
  .contact-icons a {
    margin-left: 20px;
    font-size: 1rem;
  }
  
  .footer-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px 20px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 80px;
  }
  
  .logo-text:nth-child(n+5) {
    display: none;
  }
  
  .project-row {
    flex-direction: column;
    gap: 40px;
  }
  
  .project-section h1 {
    font-size: 1.5rem;
  }
  
  .project-number {
    font-size: 2rem;
  }
  
  .project-name {
    font-size: 1.5rem;
  }
  
  .big-font {
    font-size: 120px;
  }
  
  .typography1 .typography-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
  }
  
  .typography1 .font-samples {
    text-align: left;
  }
  
  .typography1 .big-font {
    font-size: 120px;
  }
  
  .typography2 .typography-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .project-row.logo-typography-row {
    gap: 60px;
  }
  
  .typography3 .typography-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
  }
  
  .typography3 .font-samples {
    text-align: left;
  }
  
  .typography3 .big-font {
    font-size: 120px;
  }
  
  .project-container:has(#imgp4) {
    margin-bottom: 80px;
  }
  
  #project-container5-6 {
    margin-top: 80px;
  }

  .footer-logos {
    width: 100%;
    max-width: 100%;
    margin: 30px 0 0 0;
    padding: 10px 5px;
    flex-wrap: nowrap;
    gap: 5px;
    overflow: hidden;
  }
  
  #project-container5-6 .project-row {
    gap: 80px;
  }
  
  h1[style*="font-size: 8rem"] {
    width: 100%;
    text-align: center;
    align-self: center;
    font-size: 5rem !important;
  }  

  .filter-section {
    margin-top: 60px;
    margin-bottom: 40px;
  }

  .filter-container {
    gap: 15px;
  }

  .filter-btn {
    font-size: 0.85rem;
    padding: 8px 20px;
  }
}

/* ===================================
   RESPONSIVE: SMALL MOBILE (max 480px)
   =================================== */
@media (max-width: 480px) {
  body {
    padding: 0;
    padding-top: 75px;
    align-items: stretch;
  }
  
  .main-container {
    padding: 0;
    max-width: 100vw;
    width: 100vw;
  }
  
  .main-header {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 5px 15px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  
  .header-content {
    justify-content: space-between;
    padding: 0;
  }
  
  .logo-top {
    position: static;
    transform: none;
    font-size: 35px;
    left: auto;
  }
  
  .contact-icons a {
    margin-left: 20px;
    font-size: 1rem;
  }
  
  .hero-section {
    padding: 20px;
    text-align: center;
  }
  
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-title {
    font-size: 2.8rem;
    text-align: center;
  }
  
  .hero-image-container {
    display: none;
  }
  
  .cta-button {
    margin-top: 45px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .footer-logos {
    width: 100%;
    max-width: 100%;
    margin: 30px 0 0 0;
    padding: 10px 5px;
    flex-wrap: nowrap;
    gap: 5px;
    overflow: hidden;
  }
  
  .logo-text {
    font-size: 1.2rem;
  }
  
  .logo-text:nth-child(n+4) {
    display: none;
  }
  
  .project-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 120px;
    margin-bottom: 80px;
  }
  
  .project-container:first-of-type {
    margin-top: 80px;
  }
  
  .project-mockup {
    width: 100%;
    margin-bottom: 50px;
  }
  
  .project-row {
    gap: 45px;
    margin-bottom: 45px;
  }
  
  .project-mockup img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  
  .project-number {
    font-size: 1.8rem;
    text-align: left;
  }
  
  .project-name {
    font-size: 1.2rem;
    text-align: left;
  }
  
  .project-section h1 {
    text-align: left;
    font-size: 2rem;
  }
  
  #project-container5-6 {
    margin-top: 120px;
  }
  
  #project-container5-6 .project-row {
    gap: 60px;
  }

  #img5p2 {
    max-width: 100%;
    margin-left: 0;
  }
  
  h1[style*="font-size: 8rem"] {
    font-size: 2.5rem !important;
    text-align: center;
  }

  #space2 {
    display: flex;
    flex-direction: column;
  }
  
  .color-palette {
    min-height: 150px;
    flex-direction: row;
  }
  
  .color-block {
    padding: 20px 15px;
    min-width: 50%;
  }
  
  .typography-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
  }
  
  .font-samples {
    text-align: center;
    flex: 1;
  }
  
  .big-font {
    font-size: 110px;
    text-align: center;
  }
  
  .typography1 .typography-container {
    gap: 20px;
  }
  
  .typography1 .font-samples {
    gap: 8px;
  }
  
  .typography2 .typography-container {
    flex-direction: column;
    gap: 35px;
  }
  
  .typography2 .font-samples {
    text-align: center;
  }
  
  .typography2 .big-font {
    text-align: center;
  }

  .filter-section {
    margin-top: 50px;
    margin-bottom: 30px;
  }

  .filter-container {
    gap: 15px;
    flex-direction: row;
  }

  .filter-btn {
    font-size: 0.8rem;
    padding: 8px 18px;
  }
}

/* ===================================
   RESPONSIVE: DESKTOP (1025px+)
   =================================== */
@media (min-width: 1025px) {
  h1[style*="font-size: 8rem"] {
    width: 100%;
    text-align: center !important;
    align-self: center !important;
    justify-content: center !important;
  }

  #project-container5-6 {
    margin-top: 150px; 
  }

  .typography2 .font-name { 
    font-size: 40px; 
  }
  
  .typography2 .font-regular { 
    font-size: 20px; 
  }
  
  .typography2 .big-font { 
    font-size: 80px; 
  }

  .typography2 .typography-container {
    flex-direction: column;
    gap: 20px;
  }

  .typography1 .font-light,
  .typography1 .font-regular,
  .typography1 .font-medium,
  .typography1 .font-bold,
  .typography1 .font-black {
    font-size: 18px;
  }

  .typography1 .font-name { 
    font-size: 40px; 
  }
  
  .typography1 .font-regular { 
    font-size: 20px; 
  }
  
  .typography1 .big-font { 
    font-size: 80px; 
  }
}
