/* Optimized and enhanced CSS for a modern and visually appealing website */

/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Adjusted smooth scrolling to stop before headings */
html {
  scroll-behavior: smooth;
}

:target {
  scroll-margin-top: 100px; /* Ensures headings remain visible */
}

/* Added margin to body to prevent content overlap with fixed menu */
body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
  overflow-x: hidden;
  margin-top: 80px; 
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}



.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
}

/* Header Styling */
header {
  background: linear-gradient(90deg, #00529B, #003366);
  color: #fff;
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 0; /* Ensures no extra space between menu and header */
}

.addOp{
  background: linear-gradient(90deg, #00529B, #003366);
  position:fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  color:#fff;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width:100%;
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2em;
}

/* Navigation Bar */
nav {
  background: #003366;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px 0; /* Increased padding for a larger menu */
}
.logo {
  height: 50px;
  width: auto;
  vertical-align: middle;
  margin-right: 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: 25px 30px; /* Increased padding for larger clickable area */
  font-size: 0.9em; /* Increased font size for better readability */
  font-weight: bold;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}
.burger div {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 5px;
}

.dashboard-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            gap: 20px;
            padding: 40px 20px;
        }
        .card {
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            padding: 20px;
            flex: 1;
            min-width: 250px;
            max-width: 300px;
            text-align: center;
        }
        .card h5 {
            font-size: 1.2em;
            color: #003366;
        }
        .card p {
            font-size: 2em;
            font-weight: bold;
            color: #00529B;
        }

.action-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 0.9em;
        padding: 6px 10px;
        border-radius: 10px;
        text-decoration: none;
    }

    .btn-warning {
        background-color: #ffc107;
        color: #000;
    }

    .btn-danger {
        background-color: #dc3545;
        color: #fff;
    }
    
    .btn-primary{
    	background-color: #039dfc;
    	color:#fff;
    }

    .btn-warning:hover, .btn-danger:hover , .btn-primary:hover {
        opacity: 0.9;
    }

.slider-container {
  position: relative;
  width: 100vw; /* Full width of the viewport */
  margin: 0;
  padding:0;
  overflow: hidden;
}

.slider {
  position: relative;
  width: 100%;
}

.slide {
  display: none;
}

.slide img {
  width: 100vw; /* Ensures full width */
  height: 400px;
  object-fit: cover;
  display: block;
}

.dots {
  text-align: center;
  padding: 10px;
  background: #f9f9f9;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  display: inline-block;
  border-radius: 50%;
  background-color: #bbb;
  cursor: pointer;
  transition: background-color 0.6s ease;
}

.dot.active {
  background-color: #333;
}

/* Section Styling */
section {
  padding: 50px 20px;
}

/* hero section */
#hero {
  padding: 60px 20px;
  background: #f9f9f9;
  font-family: 'Segoe UI', sans-serif;
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero-content {
  flex: 1;
  min-width: 280px;
}

.hero-heading h1 {
  font-size: 2rem;
  margin: 0;
  color: #1a1a1a;
}

.degree {
  font-weight: normal;
  color: #666;
  font-size: 1.1rem;
}

.designation {
  font-size: 1.1rem;
  color: #444;
  margin-top: 0.5rem;
}

.intro-text,
.panel-info,
.specialties {
  font-size: 1rem;
  color: #333;
  margin-top: 1rem;
  line-height: 1.6;
}

.specialties {
  margin-top: 1.5rem;
}

.specialties-slider {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.specialties-slider::-webkit-scrollbar {
  height: 6px;
}

.specialties-slider::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

.specialty-card {
  flex: 0 0 auto;
  min-width: 250px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

.specialty-card i {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1e3a8a;
}

.specialty-card:hover {
  transform: translateY(-5px);
}

.cta-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 12px 24px;
  background-color: #FFD700;
  color: #000;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background: #ffc107;
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.5);
}


/* Settlements Section */
#settlements-section {
  position: relative;
  overflow: hidden;
  background-color: #8B0000;
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
}

#settlements {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px 0;
}

.settlement {
  text-align: center;
}

.settlement h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.settlement p {
  font-size: 2em;
  font-weight: bold;
  margin: 0;
}

/* Arrows */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.2);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
}

.scroll-btn.left {
  display:none;
  left: 5px;
}

.scroll-btn.right {
  display:none;
  right: 5px;
}

#our_clients {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px 0;
}

.client img{
	width:150px;	
}

.client .line{
	background-color:#cccccc;
	height:150px;
	width:2px;
}

/* practice areas */
#practice-areas {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

#practice-areas .container {
  max-width: 1200px;
  margin: 0 auto;
}

#practice-areas h1 {
  font-size: 2.5em;
  text-align: center;
  color: #1a237e;
  margin-bottom: 30px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#practice-areas .areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

#practice-areas .area {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

#practice-areas .area:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#practice-areas .area h3 {
  font-size: 1.3em;
  color: #1a237e;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#practice-areas .area p {
  color: #444;
  line-height: 1.6;
  font-size: 0.95em;
  margin: 0;
}

#practice-areas b {
  color: #333;
}


#about {
  background: #fffdf9;
  padding: 60px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

#about .container {
  max-width: 1000px;
  margin: 0 auto;
}

#about h1 {
  font-size: 2.5em;
  text-align: center;
  color: #1a237e;
  margin-bottom: 30px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#about p {
  padding: 16px 0;
  text-align: justify;
  font-size: 1.05em;
  line-height: 1.8;
  color: #444;
}

#about p b {
  color: #1b1464;
  font-weight: 600;
}

#about .container::before {
  content: "⚖️";
  font-size: 50px;
  display: block;
  text-align: center;
  margin-bottom: 10px;
  opacity: 0.3;
}

#location {
  background-color: #f9f9f9;
  padding: 60px 20px;
  color: #333;
  font-family: 'Segoe UI', sans-serif;
}

#location h1 {
  font-size: 2.5em;
  text-align: center;
  color: #1a237e;
  margin-bottom: 30px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#location h1 i {
  color: #ff6f00;
  margin-right: 10px;
}

/* Two-column layout wrapper */
.location-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Address styling */
.address-box {
  background: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
  line-height: 1.7;
}

/* Map iframe styling */
.map-box iframe {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}



/* FAQ Section */
#faq {
  margin: 50px 0;
}

.faq-h1{
	font-size: 2.5em;
  text-align: center;
  color: #1a237e;
  margin-bottom: 30px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  background-color: #f9f9f9;
}

.faq-item h1{
  padding-bottom: 10px;
}

.faq-item p{
  padding-bottom: 10px;
}

.faq-item ul li{
  padding-bottom: 10px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
}

.faq-question:hover {
  color: #00529B;
}

.faq-toggle {
  font-size: 20px;
  margin-right: 10px;
  color: #007bff;
  transition: transform 0.2s;
}

.faq-answer p{
	padding-left:5px
}

.points{
	padding-left:25px;
}

.faq-answer {
  margin-top: 10px;
  padding-left: 10px;
  border-left: 3px solid #00529B;
  font-size: 0.95em;
  color: #333;
}


/* Modern Popup Styling */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 90%;
  font-family: 'Segoe UI', sans-serif;
  animation: fadeIn 0.4s ease-in-out;
}

.popup-content h1 {
  font-size: 28px;
  color:  #003366;
  text-align: center;
  margin-bottom: 20px;
}

.popup-content h2 {
  font-size: 24px;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}

.popup-content ul {
  margin-bottom: 25px;
  padding-left: 20px;
  color: #333;
  line-height: 1.6;
}

.popup-buttons {
  display: flex;
  justify-content: space-evenly;
}

.popup-buttons button {
  font-size: 16px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

#accept-button {
  background-color: #007b5e;
  color: white;
}

#accept-button:hover {
  background-color: #005f47;
}

#decline-button {
  background-color: #b00020;
  color: white;
}

#decline-button:hover {
  background-color: #850015;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#contact {
  padding: 60px 20px;
  background: linear-gradient(135deg, #00529B, #003366);
  color: #fff;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#contact h2 {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFD700;
}

.success-message {
  color: #00e676;
  font-weight: bold;
  margin-bottom: 15px;
}

.form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.form input,
.form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  font-family: inherit;
  transition: border 0.3s ease;
}

.form input:focus,
.form textarea:focus {
  border-color: #00529B;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 82, 155, 0.3);
}

.form textarea {
  resize: vertical;
  min-height: 120px;
}

.btn {
  width: 100%;
  padding: 14px;
  background: #FFD700;
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #ffc107;
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.5);
}


/* Footer Styling */
footer {
  background: linear-gradient(to right, #0a0a0a, #1f1f1f);
  color: #ccc;
  padding: 40px 20px 20px;
  text-align: center;
  position: relative;
  font-family: 'Segoe UI', sans-serif;
  border-top: 2px solid #333;
}

.footer-container p {
  margin: 8px 0;
  font-size: 1em;
  color: #ccc;
}

footer strong {
  color: #FFD700;
  font-weight: bold;
}

.footer-socials {
  margin: 20px 0;
}

.footer-socials a {
  margin: 0 10px;
  font-size: 1.4em;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-socials a:hover {
  transform: scale(1.2);
}

.scroll-top {
  position:absolute;
  bottom: 30px;
  right: 30px;
  background: #FFD700;
  border: none;
  color: #000;
  font-size: 1.2em;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background 0.3s ease, transform 0.2s ease;
}

.scroll-top:hover {
  background: #FFC107;
  transform: scale(1.1);
}

/* Algoryne Credit Section */
.algoryne-footer {
  margin-top: 30px;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #bbb;
  border-top: 1px solid #444;
}

.algoryne-footer a {
  color: #66cfff;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.algoryne-footer a:hover {
  color: #FFD700;
  text-decoration: underline;
}

.algoryne-footer .heart {
  color: #e25555;
  font-size: 1.1em;
}



@media (max-width: 1307px) {
  .nav-links {
      display: none;
      flex-direction: column;
      width: 100%;
      margin-top: 15px;
      background-color: #003366;
  }
  .nav-links.active {
      display: flex;
  }
  .nav-links li {
      margin: 10px 0;
      text-align: center;
      font-size:20px;
  }
  .nav-links a{
   max-width:100%;
  }
  .burger {
      display: flex;
      float:right;
  }
}

@media (min-width: 992px) {
  .location-wrapper {
    flex-direction: row;
    align-items: flex-start;
  }

  .address-box, .map-box {
    flex: 1;
  }

  .address-box {
    margin-right: 30px;
  }
  
}

@media (max-width: 850px) {
  #settlements {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }

  .settlement {
    min-width: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 20px 10px;
    box-sizing: border-box;
  }
  
  .scroll-btn {
    display: block;
  }
  .scroll-btn.right{
    display:block;
  }
  .scroll-btn.left{
    display:block;
  }
}

@media (max-width: 820px) {
  #our_clients {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }

  .client { /* Show 2 clients per viewport */
    scroll-snap-align: start;
    text-align: center;
    padding: 10px 0;
  }

  .client .line {
    display: block; /* Hide vertical line for mobile view */
  }
}
/*
@media screen and (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .hero-heading h1 {
    font-size: 1.8rem;
  }

  .specialties-list {
    justify-content: center;
  }

  
  .cta-button {
    width: 100%;
    padding: 14px;
  }
}
*/
@media (max-width: 600px) {
  #contact h2 {
    font-size: 2em;
  }

  .form {
    padding: 20px;
  }

  .btn {
    font-size: 1em;
  }
}



@media (max-width: 500px) {
  .hero-image img {
    width: 180px;
  }

  .hero-content {
    font-size: 0.95em;
  }

  .name-title h2 {
    font-size: 1.6em;
  }

  .cta-button {
    width: 100%;
    padding: 12px 0;
    text-align:center;
  }
}