:root {
  --primary-color: #111;
  --accent-color: #e63946;
  --text-color: #f1faee;
  --secondary-color: #1d3557;
  --light-bg: #212121;
  --gradient-start: #1a1a1a;
  --gradient-end: #000;
  --hero-gradient: linear-gradient(90deg, #e63946, #1d3557, #f1faee, #e63946);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--text-color);
  line-height: 1.6;
  min-width: 320px !important;
  position: relative;
}

/* Progress bar */
.progress-container {
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 4px;
  background: transparent;
}

.progress-bar {
  height: 4px;
  background: var(--accent-color);
  width: 0%;
}

/* Navigation */
.nav-modern {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 90;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  margin: 0 auto;
  max-width: 1400px;
}

.title h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0;
  color: var(--text-color);
}

.title h2 {
  font-size: 0.9rem;
  font-weight: 300;
  margin: 0;
  color: var(--text-color);
  opacity: 0.8;
}

.title h2 span {
  color: var(--accent-color);
  font-weight: 500;
}

.nav-content {
  display: flex;
  align-items: center;
}

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

.nav-link {
  padding: 0.8rem 1.2rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--accent-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover:after {
  width: 70%;
}

.social-icons {
  display: flex;
  margin-left: 1.5rem;
}

.social-icon {
  margin: 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.social-icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 100;
}

.mobile-menu-btn span {
  width: 100%;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--primary-color);
  z-index: 89;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
}

.mobile-menu ul li {
  margin: 2rem 0;
}

.mobile-menu ul li a {
  color: var(--text-color);
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mobile-menu ul li a:hover {
  color: var(--accent-color);
}

/* Hero Section */
.hero-section {
  height: 70vh;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}

.hero-section:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(8px);
  transition: none;
}

.hero-content.hero-animate {
  animation: heroReveal 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes heroReveal {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    filter: blur(8px);
  }
  60% {
    opacity: 1;
    transform: translateY(-8px) scale(1.01);
    filter: blur(0.5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  text-align: center;
  background: var(--hero-gradient);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: heroGradientMove 3s ease-in-out infinite alternate;
  filter: drop-shadow(0 2px 10px rgba(230,57,70,0.15));
}

@keyframes heroGradientMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 400;
  opacity: 0;
  /* animation: subtitleFadeIn 1.2s 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards; */
  text-align: center;
}

.hero-content.hero-animate .hero-subtitle {
  opacity: 1;
}

@keyframes subtitleFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Showreel */
.showreel-container {
  padding: 3rem 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.showreel {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.05);
}

/* Sections */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin: 2rem 0 4rem;
  position: relative;
  color: var(--text-color);
  letter-spacing: 2px;
}

.section-title:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

/* Skills Section */
.features-section {
  background-color: var(--light-bg);
  padding: 5rem 0;
  margin: 3rem 0;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 3rem;
}

.skill-category {
  flex: 1;
  min-width: 300px;
}

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 500;
  text-align: center;
  color: var(--accent-color);
}

.skill-list {
  list-style: none;
  padding: 0;
}

.skill-item {
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.skill-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.skill-item .material-icons {
  margin-right: 12px;
  color: var(--accent-color);
}

/* Brands Section */
.brand-section {
  padding: 5rem 0;
}

.brands-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
}

.brand-card {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
  padding: 1.5rem;
}

.brand-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.brand-card img {
  max-width: 100%;
  max-height: 100%;
  transition: all 0.3s ease;
}

.brand-card:hover img {
  transform: scale(1.08);
}

/* Client Work Section */
.client-card {
  margin-bottom: 6rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.client-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.client-info {
  padding: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.client-info h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.client-info h2 a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.client-info h2 a:hover {
  text-decoration: underline;
}

.client-info p {
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.8;
}

.client-info p a {
  color: var(--text-color);
  text-decoration: underline;
  transition: all 0.3s ease;
}

.client-info p a:hover {
  color: var(--accent-color);
}

.client-tags {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.client-tag {
  background: var(--accent-color, #e63946);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.25em 0.8em;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  user-select: none;
  transition: background 0.2s;
}

.client-tag:hover {
  background: #fff;
  color: var(--accent-color, #e63946);
}

.video-gallery {
  padding: 1.5rem;
}

.video-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.video-item {
  flex: 1;
  min-width: 300px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.video-container:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Footer */
.site-footer {
  background-color: var(--light-bg);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-info, .footer-contact, .footer-social {
  flex: 1;
  min-width: 250px;
}

.footer-info h3, .footer-contact h3, .footer-social h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--accent-color);
}

.footer-info p, .footer-contact p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  opacity: 0.8;
}

.footer-contact a {
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-contact a:hover {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Floating Arrow */
.floating-arrow {
  position: fixed;
  right: 32px;
  bottom: 80px;
  z-index: 120;
  background: var(--accent-color, #e63946);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, opacity 0.3s;
  font-size: 2.2rem;
  opacity: 0;
  pointer-events: none;
}

.floating-arrow.visible {
  opacity: 1;
  pointer-events: auto;
}

.floating-arrow:hover {
  background: #fff;
  color: var(--accent-color, #e63946);
  transform: translateY(4px) scale(1.08);
}

@media screen and (max-width: 768px) {
  .floating-arrow {
    right: 16px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
  .nav-content {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-section {
    height: 50vh;
  }
  
  .skill-category {
    min-width: 100%;
  }
  
  .brand-card {
    width: 140px;
    height: 140px;
  }
  
  .client-info {
    padding: 1.5rem;
  }
  
  .video-item {
    min-width: 100%;
  }
}