:root {
  --color-bg: #F9F9F9;
  --color-primary: #0A1F44;
  --color-accent: #D4AF37;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-white: #FFFFFF;
  
  --font-heading: 'Imperial Script', cursive;
  --font-body: 'Montserrat', sans-serif;
  
  --spacing-section: 6rem;
  --spacing-container: 2rem;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-primary);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  color: var(--color-primary);
}

.heading-luxury {
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1.2;
}

.subheading {
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 1s ease forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Global layout classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-container);
}

.section {
  padding: var(--spacing-section) 0;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid var(--color-primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: transparent;
  color: var(--color-primary);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: -1;
}

.btn:hover {
  color: var(--color-white);
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary::before {
  background-color: var(--color-accent);
}

.btn-primary:hover {
  border-color: var(--color-accent);
  color: var(--color-white);
}

/* Gold line */
.gold-line {
  height: 1px;
  background-color: var(--color-accent);
  width: 60px;
  margin: 2rem auto;
  opacity: 0.7;
}

.gold-line-left {
  margin-left: 0;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  background-color: transparent;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Subtle white border */
  backdrop-filter: blur(10px); /* Glassmorphism effect for the border to pop */
}

.navbar.nav-hidden {
  transform: translateY(-100%);
}

/* When scrolled down */
.navbar.scrolled {
  background-color: var(--color-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px; /* Increased to push elements to the sides */
}

.brand-logo {
  display: flex;
  align-items: center;
  /* Aligned to the left of the container */
  margin-left: 0; 
}

.logo-image {
  height: 60px; /* Slightly larger logo */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand-logo:hover .logo-image {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  transition: all 0.3s ease;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  position: relative;
}

/* Specific color adjustments if hero text is white (not the case here, hero text is blue) */
.navbar:not(.scrolled) .nav-link {
  color: var(--color-primary);
}

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

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

.close-menu-btn {
  display: none;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
}

/* Floating Gold Ray Animation */
.floating-ray {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 150px;
  background: linear-gradient(to bottom, transparent, var(--color-accent), transparent);
  opacity: 0.5;
  animation: floatRay 15s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes floatRay {
  0% { transform: translateY(-150px) translateX(10vw); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateY(100vh) translateX(20vw); opacity: 0; }
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-bg-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('image/hero-bg-premium.png');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

/* Updated overlay: Radial gradient for a more 'beautiful' look that keeps text legible */
.hero-bg-texture::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.7) 70%, rgba(255, 255, 255, 0.8) 100%);
}

.hero-content {
  max-width: 1100px; /* Increased to allow title on one line */
  position: relative;
  z-index: 1;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 5rem;
  font-weight: 500; /* Little bold as requested */
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 15px rgba(10, 31, 68, 0.1);
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.4); /* Thin white border/stroke */
}

.hero-title span {
  font-family: var(--font-heading);
  /* Symmetrical gradient to remove the 'border' seam during looping */
  background: linear-gradient(135deg, #d4af37 0%, #fff9d1 25%, #d4af37 50%, #fff9d1 75%, #d4af37 100%);
  background-size: 400% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  font-size: 6.5rem;
  margin-top: 0.5rem;
  line-height: 1;
  font-weight: 600;
  -webkit-text-stroke: 0; /* Removed white border from this text only */
  animation: glossyShimmer 15s linear infinite;
}

@keyframes glossyShimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}


.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--color-white); /* Changed to white as requested */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Added shadow for visibility on light background */
  margin-bottom: 3rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}



/* About Section */
.about {
  background-color: var(--color-white);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-container {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

.about-content p {
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
  font-size: 1.05rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* Services Section */
.services {
  background-color: var(--color-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 300;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--color-white);
  padding: 3rem 2rem;
  border: 1px solid rgba(10, 31, 68, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background-color: var(--color-accent);
  transition: height 0.4s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(10, 31, 68, 0.05);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Method Section */
.method {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.method .section-header h2 {
  color: var(--color-white);
}

.method .gold-line {
  background-color: var(--color-accent);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.method-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  width: 80%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.method-step {
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 80px;
  height: 80px;
  background-color: var(--color-primary);
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-accent);
  transition: all 0.4s ease;
}

.method-step:hover .step-number {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

.method-step h3 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.method-step p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Portfolio Section */
.portfolio {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.portfolio .section-header h2 {
  color: var(--color-white);
}

.work-title {
  font-size: 4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 300;
}

.portfolio .gold-line {
  background-color: var(--color-accent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.portfolio-card {
  background-color: var(--color-white);
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--color-accent);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-card.hidden {
  display: none;
}

.view-more-container {
  text-align: center;
  margin-top: 4rem;
}

.portfolio-card-image {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: top center;
}

.portfolio-card-content {
  padding: 2rem;
}

.portfolio-card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  margin-bottom: 0.8rem;
  display: block;
}

.portfolio-card-title {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0.8rem;
  position: relative;
  display: inline-block;
}

.portfolio-card-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width 0.4s ease;
}

.portfolio-card:hover .portfolio-card-title::after {
  width: 100%;
}

.portfolio-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.portfolio-card-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.portfolio-card:hover .portfolio-card-cta {
  color: var(--color-primary);
}

/* Premium Positioning */
.positioning {
  background-image: linear-gradient(rgba(249, 249, 249, 0.95), rgba(249, 249, 249, 0.95)), url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0 L100 100" stroke="%23D4AF37" stroke-width="0.5" fill="none" opacity="0.2"/></svg>');
  background-size: 50px;
  background-attachment: fixed;
  text-align: center;
  padding: 8rem 0;
}

.positioning-text {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--color-primary);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.3;
}

/* CTA Section */
.cta {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 8rem 0;
}

.cta h2 {
  color: var(--color-white);
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.cta .btn {
  border-color: var(--color-white);
  color: var(--color-white);
}

.cta .btn::before {
  background-color: var(--color-white);
}

.cta .btn:hover {
  color: var(--color-primary);
}

/* Footer */
.footer {
  background-color: var(--color-bg);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(10, 31, 68, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--color-text-light);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(10, 31, 68, 0.1);
  color: var(--color-text-light);
  font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-title { font-size: 4.5rem; }
  .hero-title span { font-size: 5.5rem; }
  .container { max-width: 95%; }
}

@media (max-width: 1024px) {
  :root {
    --spacing-section: 4rem;
  }
  
  .hero-title { font-size: 3.5rem; }
  .hero-title span { font-size: 4.5rem; }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-image-container {
    height: 400px;
    order: -1;
  }
  
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .method-grid::before {
    display: none;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--color-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3.5rem; /* Increased gap for better 'gap management' */
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 2rem;
  }

  .close-menu-btn {
    display: block;
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
  }

  .close-menu-btn:hover {
    transform: rotate(90deg);
    color: var(--color-accent);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.5rem; /* Slightly larger for premium feel */
    letter-spacing: 0.2em; /* More spacing for luxury aesthetic */
    font-weight: 300;
  }
  
  .hero-title { font-size: 2.8rem; }
  .hero-title span { font-size: 3.5rem; }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .positioning-text {
    font-size: 2.5rem;
    padding: 0 1rem;
  }
  
  .cta h2 {
    font-size: 2.2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand p {
    margin: 0 auto;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-title span { font-size: 2.8rem; }
  
  .section-header h2, 
  .about-content h2,
  .work-title {
    font-size: 2rem;
  }
  
  .method-grid {
    grid-template-columns: 1fr;
  }
}
