* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Druk';
  src: url('../fonts/Druk-Bold-Trial.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

/* HEAVY */

@font-face {
  font-family: 'Druk';
  src: url('../fonts/Druk-Heavy-Trial.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #ffffff;
  --accent-color: #ff6b6b;
  --pink: rgb(255, 0, 153);
  --light-bg: #f8f8f8;
  --text-dark: #1a1a1a;
  --text-light: #666666;
}

body {
  font-family: 'Druk', 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--secondary-color);
  line-height: 1.6;
}

/* Navigation */
nav {
  font-family:'Inter', sans-serif;
  display: flex;
  justify-content: flex-end;
  gap: 40px;
  padding: 30px 50px;
  background-color: var(--secondary-color);
  border-bottom: 2px solid var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  text-transform: capitalize;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent-color);
}

/* Header Section */
.header {
  background-color: var(--secondary-color);
  text-align: center;
}

.header h1 {
  font-family:'Druk', sans-serif;
  font-size: 197px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 30px;
}

.gallery {
  display:grid;
  grid-template-columns: repeat(24, 1fr);
  gap:10px;
  padding: 0 24px;
}

.item {
  overflow:hidden;
  height: 350px;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit:cover;
  display:block;
}

/* Layout từng ảnh */
.item1 {
  grid-column: span 5;
}

.item2 {
  grid-column: span 9;
}

.item3 {
  grid-column: span 3;
}

.item4 {
  grid-column: span 7;
}

.item5 {
  grid-column: span 8;
}

.item6 {
  grid-column: span 6;
}

.item7 {
  grid-column: span 10;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 0 50px 60px 50px;
}

.portfolio-item {
  aspect-ratio: 1;
  background-color: var(--light-bg);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section Titles */
.section-title {
  width: 1460px;
  font-size: 90px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 80px 50px 40px 20px;
  border-bottom: 3px solid var(--primary-color);
  letter-spacing: -1px;
}

/* About Section */
.about-section {
  display: flex;
  flex-direction: row;
  gap: 100px;
  padding: 30px 25px;
  align-items: center;
}

.about-section:hover {
  background-color: var(--pink);
  color: white;
}

.about-image {
  width: 100%;
  max-width: 450px;
  overflow: hidden;
}

.about-image:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-content h2,
.about-content p {
    transition: color 0.3s ease;
}

.about-section:hover h2,
.about-section:hover p {
    color: white;
}

.about-content h2 {
  font-family: 'Druk', sans-serif;
  font-size: 60px;
  font-weight: 900;
  margin-bottom: 20px;
  color: black;
}

.about-content p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
}

/* Projects Section */
.projects-container {
  padding: 0px 50px 80px 0px;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project{
  position: relative;
  margin-bottom: 120px;
  padding: 40px;
  border-radius: 24px;
  overflow: hidden;
  transition:
  transform 0.5s ease,
  background-color 0.5s ease,
  box-shadow 0.5s ease;
  cursor: pointer;
}

/* HOVER CARD */
.project:hover{
  background: rgb(255, 0, 153);
  transform: translateY(-10px);
  box-shadow:
  0 30px 80px rgba(0,0,0,0.15);
}

/* CLICK EFFECT */
.project:active{
  transform: scale(0.98);
}

.project-title{
  font-size: 50px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 30px;
  letter-spacing: -1px;
  transition:
  transform 0.5s ease,
  color 0.5s ease;
}

.project:hover .project-title{
  transform: translateX(20px);
  color: white;
}

.project-image {
  width: 100%;
  max-height: 800px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
  transform 0.8s ease,
  filter 0.8s ease;
}

.project:hover .project-image img{
  transform: scale(1.08);
  filter:
  brightness(1.1)
  contrast(1.05);
}

.project-description {
  font-family: 'Inter';
  font-size: 24px;
  color: var(--text-light);
  letter-spacing: 1px;
  line-height: 1.8;
  max-width: 1200px;
  transition:
  transform 0.5s ease,
  opacity 0.5s ease,
  color 0.5s ease;
}

.project:hover .project-description{
  transform: translateY(-5px);
  color: white;
}

.project::before{
  content:'';
  position:absolute;
  width:300px;
  height:300px;
  background:radial-gradient(circle,rgba(255,255,255,0.25),transparent 70%);
  top:-100px;
  right:-100px;
  opacity:0;
  transition: opacity 0.6s ease;
}

.project:hover::before{
  opacity:1;
  }

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 20px 20px;
  text-align: center;
}

.footer-content {
  margin-bottom: 10px;
}

.footer-bottom {
  display: flex;
  flex-direction: row;
  gap: 330px;
}

.footer-title {
  font-size: 230px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 30px;
  letter-spacing: -1px;
}

.footer-title:hover {
  color: var(--pink);
}

.footer-contact {
  display: flex;
  flex-direction: row;
  gap: 40px;
  flex-wrap: wrap;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-contact a {
  font-size: 60px;
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--accent-color);
}

.footer-credit {
  font-size: 60px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Animations */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.section-title {
    animation: fadeInUp 0.6s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
nav {
    padding: 20px 30px;
    gap: 20px;
}

.header h1 {
    font-size: 40px;
    margin-bottom: 40px;
}

.section-title {
    font-size: 35px;
}

.about-section {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 40px;
}

.about-image {
    max-width: 100%;
}

.project-title {
    font-size: 24px;
}

footer {
    padding: 40px 30px;
}

.footer-title {
    font-size: 30px;
}

.footer-contact {
    gap: 20px;
}
}

@media (max-width: 480px) {
nav {
    padding: 15px 20px;
    gap: 15px;
    font-size: 12px;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 25px;
}

.project-title {
    font-size: 18px;
}
}

/* Responsive */
@media(max-width:768px){

h1{
  font-size:48px;
}

.gallery{
  grid-template-columns:1fr;
}

.item{
  grid-column:span 1 !important;
  height:250px;
}
}

/* =========================
LOADING SCREEN
========================= */

.loader{
  position: fixed;
  inset: 0;

  background: rgb(255, 0, 153);
  color: black;

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 99999;

  transition:
  opacity 1s ease,
  visibility 1s ease;
}

.loader.hide{
  opacity: 0;
  visibility: hidden;
}

.loader-content{
  text-align: center;
}

.loader-title{
  font-size: 120px;
  text-transform: uppercase;
  letter-spacing: 5px;

  animation:
  loaderText 1.5s ease forwards;
}

.loader-line{
  width: 0%;
  height: 4px;
  background: BLACK;
  margin-top: 20px;
  animation: loadingLine 2s ease forwards;
}

/* TEXT REVEAL */
@keyframes loaderText{

  from{
    opacity: 0;
    transform: translateY(40px);
    letter-spacing: 20px;
  }

  to{
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 5px;
  }
}

/* LINE LOADING */
@keyframes loadingLine{

  from{
    width: 0%;
  }

  to{
    width: 100%;
  }
}