
/* Falling - for Headings */
@font-face {
  font-family: 'Falling';
  src: url('../fonts/Falling.woff2') format('woff2'),
       url('../fonts/Falling.woff') format('woff'),
       url('../fonts/Falling.ttf') format('truetype'),
       url('../fonts/Falling.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Falling';
  src: url('../fonts/FallingOutline.woff2') format('woff2'),
       url('../fonts/FallingOutline.woff') format('woff'),
       url('../fonts/FallingOutline.ttf') format('truetype'),
       url('../fonts/FallingOutline.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}

/* Fungka City - for Body Text */
@font-face {
  font-family: 'Fungka City';
  src: url('../fonts/Fungka City.woff') format('woff'),
       url('../fonts/Fungka City.ttf') format('truetype'),
       url('../fonts/Fungka City.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* Fieldstones - for Accent (CTAs, Footer, etc.) */
@font-face {
  font-family: 'Fieldstones';
  src: url('../fonts/Fieldstones-Thin.ttf') format('truetype'),
       url('../fonts/Fieldstones-Thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'Fieldstones';
  src: url('../fonts/Fieldstones-ThinItalic.ttf') format('truetype'),
       url('../fonts/Fieldstones-ThinItalic.otf') format('opentype');
  font-weight: 100;
  font-style: italic;
}

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

@font-face {
  font-family: 'Fieldstones';
  src: url('../fonts/Fieldstones-Italic.ttf') format('truetype'),
       url('../fonts/Fieldstones-Italic.otf') format('opentype');
  font-weight: normal;
  font-style: italic;
}

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

@font-face {
  font-family: 'Fieldstones';
  src: url('../fonts/Fieldstones-Bold.ttf') format('truetype'),
       url('../fonts/Fieldstones-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Fieldstones';
  src: url('../fonts/Fieldstones-BoldItalic.ttf') format('truetype'),
       url('../fonts/Fieldstones-BoldItalic.otf') format('opentype');
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: 'Fieldstones';
  src: url('../fonts/Fieldstones-ExtraBold.ttf') format('truetype'),
       url('../fonts/Fieldstones-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'Fieldstones';
  src: url('../fonts/Fieldstones-ExtraBoldItalic.ttf') format('truetype'),
       url('../fonts/Fieldstones-ExtraBoldItalic.otf') format('opentype');
  font-weight: 800;
  font-style: italic;
}

/* === Brand Variables & Font Setup === */
:root {
    --mg-primary: #1DB954;
    --mg-secondary: #A7F1C1;
    --mg-tertiary: #0e5828;
    --mg-accent: #1DB954; /* F05D5E */
  
    --mg-white: #ffffff;
    --mg-black: #1a1a1a;
  
    --mg-gray-100: #f5f5f5;
    --mg-gray-200: #e5e5e5;
    --mg-gray-300: #d5d5d5;
    --mg-gray-400: #c5c5c5;
    --mg-gray-500: #b5b5b5;
    --mg-gray-600: #a5a5a5;
    --mg-gray-700: #959595;
    --mg-gray-800: #858585;
    --mg-gray-900: #757575;
  
    --mg-font-heading: 'Falling', sans-serif;
    --mg-font-body: 'Fieldstones', sans-serif;
    --mg-font-accent: 'Fungka City', sans-serif;
  }
  
  /* === Base Styling === */
  body {
    font-family: var(--mg-font-body);
    background-color: var(--mg-white);
    color: var(--mg-black);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--mg-font-heading);
    color: var(--mg-black);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    word-spacing: 2px;
    width: 100%;
    display: block;
  }

  h1 {font-size: 36px;}
  h2 {font-size: 24px;}
  h3 {font-size: 20px;}
  h4 {font-size: 18px;}
  h5 {font-size: 16px;}
  h6 {font-size: 14px;}

  div,span, p, a, img, button, input, textarea, select {
    box-sizing: border-box;
  }
  
  p {
    margin-bottom: 1rem;
    letter-spacing: 1px;
    word-spacing: 2px;
  }
  
  a {
    color: var(--mg-black);
    text-decoration: none;
    letter-spacing: 1px;
    word-spacing: 2px;
  }

  a:hover {
    text-decoration: none;
    color: var(--mg-primary);
  }
  
 .btn-wrapper{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    width: 100%;
 }

  /* === Buttons === */
  .btn-mg {
    background-color: var(--mg-primary);
    color: var(--mg-white);
    font-family: var(--mg-font-accent);
    font-size: 24px;
    letter-spacing: 2px;
    word-spacing: 2px;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
    cursor: pointer;
  }

  .btn-mg:hover {
    background-color: var(--mg-tertiary);
  }
  
  /* === Navigation === */
  .navbar-custom {
    background-color: var(--mg-primary);
    padding: 1rem 2rem;
  }

  .navbar-custom .nav-link {
    color: var(--mg-white);
    font-family: var(--mg-font-body);
    font-weight: 500;
    margin-right: 1rem;
  }

  .navbar-custom .nav-link:hover {
    color: var(--mg-secondary);
  }
  
  /* === Cards === */
  .card-mg {
    background-color: var(--mg-gray-100);
    border: 1px solid var(--mg-gray-300);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }
  
  /* === Section Layouts === */
  .section {
    padding: 20px 0;
    min-height: 300px;
  }

  .section-dark {
    background-color: var(--mg-black);
    color: var(--mg-white);
  }
  
  /* === Footer === */
  .footer {
    background-color: var(--mg-black);
    color: var(--mg-white);
    padding: 5rem 0 2rem;
    position: relative;
    z-index: 1;
  }

  .footer-content {
    position: relative;
  }

  .footer-brand {
    margin-bottom: 2rem;
  }

  .footer .brand-logo {
    margin-bottom: 1rem;
    position: relative;
    z-index: auto;
  }

  .header .brand-logo {
    height: 40px;
    width: auto;
  }

  .brand-tagline {
    color: var(--mg-gray-400);
    font-size: 1.1rem;
    line-height: 1.5;
  }

  .footer-title {
    color: var(--mg-white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .footer-list,
  .footer-social {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer-list li,
  .footer-social li {
    margin-bottom: 1rem;
  }

  .footer-list a,
  .footer-social a {
    color: var(--mg-gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .footer-list a:hover,
  .footer-social a:hover {
    color: var(--mg-white);
  }

  .footer-bottom {
    border-top: 1px solid var(--mg-gray-800);
  }

  .copyright {
    color: var(--mg-gray-600);
    margin: 0;
  }

  .footer-legal {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer-legal a {
    color: var(--mg-gray-600);
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .footer-legal a:hover {
    color: var(--mg-white);
  }
  
  /* === Forms === */
  input, textarea, select {
    font-family: var(--mg-font-body);
    border: 1px solid var(--mg-gray-300);
    padding: 0.75rem;
    border-radius: 0.3rem;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* === Utility Helpers === */
  .text-accent {
    color: var(--mg-accent) !important;
  }

  .bg-primary {
    background-color: var(--mg-primary) !important;
  }
  
  .bg-secondary {
    background-color: var(--mg-secondary) !important;
  }
  
  .bg-tertiary {
    background-color: var(--mg-tertiary) !important;
  }
  .bg-dark {
    background-color: var(--mg-black) !important;
  }
  
  .text-white {
    color: var(--mg-white) !important;
  }
  
  .text-dark {
    color: var(--mg-black) !important;
  }

  /* === Layout & Structure === */
  .wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }

  .canvas {
    flex: 1;
    padding: 0;
    box-sizing: border-box;
  }

  /* === Layout Container System === */
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
    display: flex;
    flex: 1;
  }

  .container-fluid {
    width: 100%;
    padding: 0 1.5rem;
    box-sizing: border-box;
  }

  .row {
    display: flex;
    flex-wrap: wrap;
    margin: -1rem;
    box-sizing: border-box;
  }

  .row > * {
    padding: 1rem;
  }

  /* Row variations */
  .row-tight {
    margin: -0.5rem;
  }

  .row-tight > * {
    padding: 0.5rem;
  }

  .row-wide {
    margin: -2rem;
  }

  .row-wide > * {
    padding: 2rem;
  }

  /* Row alignments */
  .row-start {
    justify-content: flex-start;
  }

  .row-center {
    justify-content: center;
  }

  .row-end {
    justify-content: flex-end;
  }

  .row-between {
    justify-content: space-between;
  }

  .row-around {
    justify-content: space-around;
  }

  /* === Hero Section === */
  .hero-section {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: var(--mg-gray-100);
    position: relative;
  }

  .hero-content {
    padding: 4rem 0 8rem;
    text-align: center;
  }

  .hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
  }

  .hero-subtitle {
    font-size: 1.5rem;
    color: var(--mg-gray-700);
    max-width: 600px;
    margin: 0 auto;
  }

  /* === Header & Navigation === */
  .header {
    width: 100%;
    height: 100px;
    margin: 0px;
    padding: 0px;
    z-index: 1000;
    background-color: var(--mg-white);
    transition: all 0.3s ease;
    position: relative;
  }

  .header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease-out;
  }

  @keyframes slideUp {
    from { 
      transform: translateY(100%);
      opacity: 0;
    }
    to { 
      transform: translateY(0);
      opacity: 1;
    }
  }

  .nav {
    padding: 1.5rem 0;
  }

  .nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }



  .nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
  }

  .nav-item {
    margin: 0;
  }

  .nav-link {
    color: var(--mg-black);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--mg-primary);
    transition: width 0.3s ease;
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }

  .nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--mg-black);
    margin: 5px 0;
    transition: all 0.3s ease;
  }

  /* === Flex Layout System === */
  .flex-row {
    display: flex;
    flex-wrap: wrap;
    margin: -1rem;
  }

  .flex-col {
    padding: 1rem;
  }

  /* Column sizes */
  .col-2 { flex: 0 0 50%; }
  .col-3 { flex: 0 0 33.333%; }
  .col-4 { flex: 0 0 25%; }

  /* Flex utilities */
  .d-flex { display: flex; }
  .flex-wrap { flex-wrap: wrap; }
  .flex-nowrap { flex-wrap: nowrap; }
  
  .justify-start { justify-content: flex-start; }
  .justify-end { justify-content: flex-end; }
  .justify-center { justify-content: center; }
  .justify-between { justify-content: space-between; }
  .justify-around { justify-content: space-around; }
  
  .items-start { align-items: flex-start; }
  .items-end { align-items: flex-end; }
  .items-center { align-items: center; }
  .items-baseline { align-items: baseline; }
  .items-stretch { align-items: stretch; }

  /* === Spacing Utilities === */
  .m-0 { margin: 0 !important; }
  .mt-0 { margin-top: 0 !important; }
  .mb-0 { margin-bottom: 0 !important; }
  .ml-0 { margin-left: 0 !important; }
  .mr-0 { margin-right: 0 !important; }

  .p-0 { padding: 0 !important; }
  .pt-0 { padding-top: 0 !important; }
  .pb-0 { padding-bottom: 0 !important; }
  .pl-0 { padding-left: 0 !important; }
  .pr-0 { padding-right: 0 !important; }

  /* === Page Specific === */
  /* Home Page */
  .hero {
    padding: 4rem 0;
    background-color: var(--mg-gray-100);
    text-align: center;
  }

  .hero h1 {
    font-size: 3rem;
  }

  /* Work/Portfolio Page */
  .portfolio-row {
    display: flex;
    flex-wrap: wrap;
    margin: -1rem;
    padding: 2rem 0;
  }

  .portfolio-col {
    flex: 0 0 calc(33.333% - 2rem);
    margin: 1rem;
  }

  .portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
  }

  .portfolio-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
  }

  .portfolio-item:hover img {
    transform: scale(1.05);
  }
  
