/*
  Custom CSS for TRYNIA website
  The design embraces a dark theme with golden accents to create
  a luxurious, cinematic aesthetic. The layout is responsive and
  uses flexbox and CSS variables for maintainability.
*/

/* CSS Variables for easy theming */
:root {
  --bg-color: #0e0e0e;
  --primary-color: #d4af37;
  --primary-hover: #b9972d;
  --text-light: #f5f5f5;
  --text-muted: #cccccc;
  --card-radius: 10px;
  --transition-speed: 0.3s;
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}
a:hover {
  color: var(--primary-hover);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}

header .logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-color);
  text-transform: uppercase;
}

header nav ul {
  display: flex;
  list-style: none;
}
header nav ul li + li {
  margin-left: 30px;
}
header nav ul li a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-light);
  padding-bottom: 2px;
  transition: color var(--transition-speed), border-color var(--transition-speed);
  border-bottom: 2px solid transparent;
}
header nav ul li a:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Active nav link when section is in view */
header nav ul li a.active {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  height: 100vh;
  background: url('images/hero.png') center/cover no-repeat fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}
.hero-title {
  font-size: 64px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero-tagline {
  font-size: 22px;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.hero-btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--primary-color);
  color: var(--bg-color);
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: background var(--transition-speed), transform var(--transition-speed);
}
.hero-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
}

/* Section General Styles */
section {
  padding: 100px 20px;
}
.section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  margin: 20px auto 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* About Section */
.about-section .content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.about-section .content .text {
  flex: 1 1 500px;
  padding: 20px;
}
.about-section .content .text h3 {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 20px;
}
.about-section .content .text p {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}
.about-section .content .image {
  flex: 1 1 400px;
  padding: 20px;
}
.about-section .content .image img {
  width: 100%;
  border-radius: var(--card-radius);
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Services Section */
.services-section .cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}
.service-card {
  position: relative;
  width: 350px;
  height: 300px;
  border-radius: var(--card-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-speed);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.service-card:hover {
  transform: translateY(-8px);
}
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover img {
  transform: scale(1.1);
}
.service-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  transition: background var(--transition-speed);
}
.service-card:hover .overlay {
  background: rgba(0, 0, 0, 0.75);
}
.service-card .overlay h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
}
.service-card .overlay p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Categories Section */
.categories-section .cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}
.category-card {
  position: relative;
  width: 350px;
  height: 300px;
  border-radius: var(--card-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-speed);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.category-card:hover {
  transform: translateY(-8px);
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.category-card:hover img {
  transform: scale(1.1);
}
.category-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  color: var(--text-light);
}
.category-card h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 10px;
}
.category-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.category-card a {
  display: inline-block;
  padding: 8px 24px;
  background: var(--primary-color);
  color: var(--bg-color);
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition-speed), transform var(--transition-speed);
}
.category-card a:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* Contact Section */
.contact-section .content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}
.contact-section .info {
  flex: 1 1 350px;
  padding: 20px;
}
.contact-section .info h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
}
.contact-section .info p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 15px;
  line-height: 1.6;
}
.contact-section .info ul {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}
.contact-section .info ul li {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 10px;
}
.contact-section .form {
  flex: 1 1 350px;
  padding: 20px;
}
.contact-section form {
  display: flex;
  flex-direction: column;
}
.contact-section form input,
.contact-section form textarea {
  padding: 15px;
  margin-bottom: 20px;
  border: none;
  border-radius: 6px;
  background: #1b1b1b;
  color: var(--text-light);
  font-size: 15px;
}
.contact-section form textarea {
  resize: vertical;
  height: 140px;
}
.contact-section form button {
  padding: 14px 40px;
  background: var(--primary-color);
  color: var(--bg-color);
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-speed), transform var(--transition-speed);
}
.contact-section form button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: #0a0a0a;
  padding: 60px 20px;
  color: #777;
}
footer .footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
footer .footer-content .col {
  flex: 1 1 300px;
}
footer .footer-content h4 {
  color: var(--primary-color);
  font-size: 22px;
  margin-bottom: 15px;
}
footer .footer-content p {
  font-size: 14px;
  color: #999;
  line-height: 1.6;
}
footer .footer-content ul {
  list-style: none;
  padding: 0;
}
footer .footer-content ul li {
  margin-bottom: 10px;
}
footer .footer-content ul li a {
  color: #888;
  font-size: 14px;
  transition: color var(--transition-speed);
}
footer .footer-content ul li a:hover {
  color: var(--primary-color);
}
footer .copyright {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: #666;
}

/* Sub-hero for inner pages */
.sub-hero {
  height: 60vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 20px 80px;
}
.sub-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}
.sub-hero .sub-content {
  position: relative;
  z-index: 1;
}
.sub-hero .sub-title {
  font-size: 50px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-transform: uppercase;
}
.sub-hero .sub-tagline {
  font-size: 20px;
  color: var(--text-muted);
}

/* Feature Section on inner pages */
.feature-section .features {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: stretch;
}
.feature-section .feature {
  background: #101010;
  border-radius: var(--card-radius);
  padding: 40px 30px;
  text-align: center;
  flex: 1 1 300px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-speed);
}
.feature-section .feature:hover {
  transform: translateY(-6px);
}
.feature-section .feature .icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--primary-color);
}
.feature-section .feature h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
}
.feature-section .feature p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CTA Section on inner pages */
.cta-section {
  background: #101010;
  padding: 80px 20px;
  text-align: center;
}
.cta-section h2 {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 20px;
}
.cta-section p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
  header {
    padding: 20px 40px;
  }
  .hero-title {
    font-size: 50px;
  }
  .services-section .service-card,
  .categories-section .category-card {
    width: 300px;
    height: 260px;
  }
  .service-card .overlay h3,
  .category-card .overlay h3 {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  header nav ul {
    margin-top: 10px;
    flex-direction: column;
  }
  header nav ul li + li {
    margin-left: 0;
    margin-top: 10px;
  }
  .hero-title {
    font-size: 40px;
  }
  .hero-tagline {
    font-size: 18px;
  }
  .about-section .content {
    flex-direction: column;
  }
  .about-section .content .image,
  .about-section .content .text {
    flex: 1 1 100%;
  }
  .services-section .service-card,
  .categories-section .category-card {
    width: 100%;
    height: 260px;
  }
  .contact-section .content {
    flex-direction: column;
  }
  footer .footer-content {
    flex-direction: column;
    text-align: center;
  }
  footer .footer-content .col {
    flex: 1 1 100%;
  }
  footer .footer-content ul {
    display: inline-block;
  }
}