/* Global Styles */
:root {
  --primary-color: #0c2340; /* Navy blue */
  --secondary-color: #c8a355; /* Gold */
  --accent-color: #f5f5f5;
  --text-color: #333;
  --light-text: #f5f5f5;
  --dark-gray: #444;
  --light-gray: #f9f9f9;
  --medium-gray: #e0e0e0;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  margin-top: 1rem;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  margin-top: 0.8rem;
}

.underline {
  height: 3px;
  width: 70px;
  background-color: var(--secondary-color);
  margin: 0.5rem auto 1.5rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--dark-gray);
  max-width: 700px;
  margin: 1rem auto;
  
}

.gold-text {
  color: var(--secondary-color);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--secondary-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--light-text);
  border: 2px solid var(--light-text);
}

.btn-secondary:hover {
  background-color: var(--light-text);
  color: var(--primary-color);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  background-color: transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  background-color: var(--primary-color);
  padding: 0.7rem 0;
  box-shadow: var(--shadow);
}

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

.logo h1 {
  font-size: 1.8rem;
  color: var(--light-text);
  margin-bottom: 0;
}

.nav-links ul {
  display: flex;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: var(--light-text);
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

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

.open-menu, .close-menu {
  font-size: 1.5rem;
  color: var(--light-text);
  cursor: pointer;
  display: none;
}

/* Hero Section */
.hero {
  height: 100vh;
  background-image: url('https://images.unsplash.com/photo-1575505586569-646b2ca898fc?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1505&q=80');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(12, 35, 64, 0.9), rgba(12, 35, 64, 0.7));
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--light-text);
  max-width: 700px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero-content h2 {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* About Section */
.about {
  padding: 6rem 0;
  background-color: var(--light-gray);
}

.about-content {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-image {
  flex: 1;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-item h4 {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 0.2rem;
}

/* Practice Areas */
.practice-areas {
  padding: 6rem 0;
}

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

.practice-card {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: 5px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.practice-card .icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.practice-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* blogss Section */
.blogs {
  padding: 6rem 0;
  background-color: var(--light-gray);
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.blogs-card {
  background-color: white;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.blogs-img {
  height: 300px;
  overflow: hidden;
}

.blogs-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blogs-card h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 1.5rem 1.5rem 0.5rem;
}

.blogs-card .position {
  color: var(--secondary-color);
  font-weight: 600;
  margin: 0 1.5rem 1rem;
}

.blogs-card p {
  margin: 0 1.5rem 1.5rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--light-gray);
  border-radius: 50%;
  color: var(--primary-color);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  color: var(--light-text);
}

/* Blog Section */

.blog {
  padding: 6rem 0;
}

/* Testimonials Section */
.testimonials {
  padding: 6rem 0;
}

.testimonial-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 20px;
}

.testimonial-content {
  background-color: var(--light-gray);
  padding: 3rem;
  border-radius: 5px;
  box-shadow: var(--shadow);
  text-align: center;
}

.testimonial-icon {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.testimonial-author h4 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.testimonial-btn {
  background-color: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--primary-color);
  cursor: pointer;
  transition: var(--transition);
}

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

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
  margin: 0 1rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--medium-gray);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--secondary-color);
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background-color: var(--light-gray);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.info-item h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contact-form {
  background-color: white;
  padding: 2rem;
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--medium-gray);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.contact-form .btn {
  width: 100%;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 4rem 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer-logo p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.footer h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--light-text);
}

.footer-links ul li, 
.footer-practice ul li {
  margin-bottom: 0.8rem;
}

.footer-links a, 
.footer-practice a {
  color: var(--light-text);
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover, 
.footer-practice a:hover {
  opacity: 1;
  color: var(--secondary-color);
}

.footer-newsletter p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.footer-newsletter form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-newsletter input {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--light-text);
  font-family: var(--font-body);
  font-size: 1rem;
}

.footer-newsletter input:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  opacity: 0.7;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  opacity: 0.7;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  opacity: 1;
  color: var(--secondary-color);
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Media Queries */
@media (max-width: 992px) {
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .hero-content h2 {
    font-size: 1.7rem;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-image {
    order: -1;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 4rem 2rem;
    transition: var(--transition);
    z-index: 2000;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links ul {
    flex-direction: column;
    gap: 2rem;
  }
  
  .nav-links li {
    margin-left: 0;
  }
  
  .open-menu, .close-menu {
    display: block;
  }
  
  .close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content h2 {
    font-size: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .stats {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content h2 {
    font-size: 1.3rem;
  }
  
  .testimonial-content {
    padding: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}