:root {
    --primary-color: #29404f !important;
    --primary-color-light: #42667f !important;
    --secondary-color:#0f958e !important;
    --secondary-color-light:#16d7cd !important;

    --primary-color2: #0a3f4c !important;
    --primary-color-light2: #187289 !important;
    --secondary-color2:#844406 !important;
    --secondary-color-light2:#dea823 !important;

    --bg-color: #ffffff;t
    --dark-bg: #212d37 !important;
    --dark-bg-2: #212529 !important;
    --text-color: #474A59 !important;
    --text-black:#000 !important;
    --text-white:#fff !important;
    --text-light:#f4f4f4 !important;
    --highlight: #294050;
    --nav-height: 80px;
    --nav-height-shrink: 65px;
    --transition-slow: 1.5s all ease-in-out;
    --transition-medium: 0.9s all ease-in-out;
    --transition-fast: 0.5s all ease-in-out;
    --transition-speed: 0.3s;
    --bg: #fff;
    --text: #222;
    --accent: var(--primary-color) /*#007b7f;*/
}
::selection {
    background-color: var(--primary-color);
    color: var(--bg-color);
  }
  
  ::-moz-selection {
    background-color: var(--primary-color);
    color: var(--bg-color);
  }
  
* {
    scrollbar-width: thin;               /* Firefox */
    scrollbar-color: #0a3f4c #f1f1f1;     /* Firefox */
  }
  
  /* Webkit browsers (Chrome, Edge, Safari) */
  *::-webkit-scrollbar {
    width: 10px;
    height: 8px;
  }
  
  *::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }
  
  *::-webkit-scrollbar-thumb {
    background-color: #0a3f4c;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
  }
  
  *::-webkit-scrollbar-thumb:hover {
    background-color: #0a3f4c;
  }
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1{
    font-size: 32px;
    transition: all 0.6s ease;
}
h2{
  font-size: 26px;
  transition: all 0.6s ease;
}

h3{
    font-size: 22px;
    letter-spacing: 1.5px;
    transition: all 0.6s ease;
}
h4{
  font-size: 20px;
  transition: all 0.6s ease;
}
h5{
  font-size: 18px;
  transition: all 0.6s ease;
}

a{
  text-decoration: none;
  color: var(--primary-color);
  transition:var(--transition-fast);
}
a:hover{
  color:var(--secondary-color);
}
/* Header */
header {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
}

#contactBtn {
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

/* Hero Section */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  overflow: hidden;
  background: #222;
}

/* Diagonal Sections */
.diagonal {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.6s ease;
  position: relative;
}

/* Left Section */
.diagonal.left {
    width: 70%;
  background: #222;
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
  z-index: 2;
}

/* Right Section */
.diagonal.right {
    width: 30%;
    padding: 40px;
  background: #333;
  color: #fff;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 1;
}

/* Content Styling */
.diagonal .content {
  max-width: 80%;
}


.button-primary {
  margin-top: 10px;
  outline: 0;
  overflow: hidden;
  padding: 0 20px;
  text-align: center;
  text-transform: uppercase;
  transition: 0.5s;
  background-size: 200% auto;
  color: white;
  border-radius: 5px;
  display: inline-block;
  height: 40px;
  width: auto;
  line-height: 40px;
  border: 0px;
  font-weight: 700;
  box-shadow: 0px 0px 14px -7px var(--primary-color-light);
  background-image: linear-gradient(45deg, var(--primary-color) 0%, var(--primary-color-light)  51%, var(--primary-color)  100%);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-primary:hover {
  background-position: right center;
  /* change the direction of the change here */
  color: #fff;
  text-decoration: none;
}

.button-primary:active {
  transform: scale(0.95);
}
.button-secondary {
  margin-top: 20px;
  outline: 0;
  overflow: hidden;
  padding: 0 20px;
  text-align: center;
  text-transform: uppercase;
  transition: 0.5s;
  background-size: 200% auto;
  color: white;
  border-radius: 5px;
  display: inline-block;
  height: 40px;
  width: auto;
  line-height: 40px;
  border: 0px;
  font-weight: 700;
  box-shadow: 0px 0px 14px -7px var(--secondary-color-light);
  background-image: linear-gradient(45deg, var(--secondary-color) 0%, var(--secondary-color-light)  51%, var(--secondary-color)  100%);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-secondary:hover {
  background-position: right center;
  /* change the direction of the change here */
  color: #fff;
  text-decoration: none;
}

.button-secondary:active {
  transform: scale(0.95);
}


/* Slider Container (Hidden Initially) */
.slider-container {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 50%;
  background: #fff;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.6s ease;
  z-index: 3;
  padding: 2rem;
}

/* Slides */
.slide {
  display: none;
  text-align: center;
}

.slide.active {
  display: block;
}

/* Slider Controls */
.slider-controls {
  margin-top: 20px;
}

.slider-controls button {
  padding: 8px 12px;
  background: var(--secondary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  margin: 0 5px;
  border-radius: 50%;
}

.slider-controls button.collapse {
  padding: 8px 12px;
  background: #555;
  color: #fff;
  border: none;
  cursor: pointer;
  margin: 0 5px;
  border-radius: 50%;
  transition: background 0.3s;
}

.slider-controls button.collapse:hover {
  background: #c0392b; /* red hover */
}

/* Show Slider State */
#hero.show-slider .diagonal.right {
  transform: translateX(-50%);
  display: none;
  transition: all 0.6s ease;
}
#hero.show-slider .diagonal.left {
    width: 50%;
  transition: all 0.6s ease;
}

#hero.show-slider .slider-container {
  transform: translateX(0);
  opacity: 1;
}

.left-para{
    width: 60%;
    letter-spacing: 1.2px;
    line-height: 28px;
    font-size: 17px;
    transition: all 0.6s ease;
}
.right-para{
    letter-spacing: 1.8px;
    line-height: 25px;
    transition: all 0.6s ease;
}
#hero.show-slider .left-para{
    width:90%;
}

.logo{
    height: 70px;
    transition: all 0.6s ease;
}

.text-primary {
    color: var(--primary-color) !important;
    transition: all 0.6s ease;
}
.text-secondary {
    color: #228834 !important;
    transition: all 0.6s ease;
}
.text-primary2 {
    color: var(--primary-color2) !important;
    transition: all 0.6s ease;
}
.text-secondary2 {
    color: var(--secondary-color-light2) !important;
    transition: all 0.6s ease;
}
.text-left{
    text-align: left !important;
    transition: all 0.6s ease;
}
.text-right{
    text-align: right !important;
    transition: all 0.6s ease;
}


/* Responsive */
@media (max-width: 768px) {
  #hero {
    flex-direction: column;
    background: #333 !important;
  }
  .diagonal {
    width: 100%;
    clip-path: none;
  }
  .slider-container {
    width: 100%;
    position: relative;
    transform: translateY(100%);
    overflow-y: auto;
    padding-top:50%;
  }
  #hero.show-slider .diagonal.right {
    transform: translateY(-100%);
    transition: all 0.6s ease;
  }
  #hero.show-slider .diagonal.left {
    width: 100%;
    clip-path: none;
    transition: all 0.6s ease;
    padding: 0px;
    padding-top: 30px; padding-bottom: 20px;
  }
  #hero.show-slider .slider-container {
    transform: translateY(0);
      transition: all 0.6s ease;
  }
  .diagonal.left, .diagonal.right {
    width: 100%;
    padding: 10%;
    clip-path: none;
    transition: all 0.6s ease;
  }

  .left-para{
    width: 100%;
    font-size: 14px;
  }
  #hero.show-slider .left-para{
    width:100%;
}
  h1{
    font-size: 22px;
  }
  h3{font-size: 18px; }
  .logo{ height: 60px; }
  .button-primary{padding: 0 10px; font-size:12px;}
}


/* Preloader overlay */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #222; /* or any color you want */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Spinner */
.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255,255,255,0.2);
  border-top-color: var(--primary-color-light);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}


/* Common overlay styles */
.modal-overlay, .slide-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  visibility: hidden;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

/* Popup Modal content */
.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

/* Slide Modal content */
.slide-modal-content {
  background: #fff;
  padding: 2rem;
  width: 50%;
  min-width: 350px;
  max-height: 90vh;
  position: relative;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  overflow-y: auto;
}

/* Show Popup Modal */
.modal-overlay.active {
    visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* Show Slide Modal */
.slide-modal-overlay.active {
    visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.slide-modal-overlay.active .slide-modal-content {
  transform: translateY(0);
}

/* Close Button */
.close-modal,
.close-slide-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
}


.profile-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
}

.profile-pic {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary-color);
}

.profile-info h4 {
  margin: 0;
  font-size: 1.1rem;
}

.profile-title {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.social-links {
  margin-top: 0.5rem;
}

.social-links a {
  display: inline-block;
  color: var(--secondary-color);
  margin-right: 10px;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--secondary-color-light);
}

/* Insights */

.insights-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 3;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.insights-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100vh;
  background: #1e1e1e;
  color: #fff;
  padding: 2rem;
  transition: right 0.4s ease;
  z-index: 999;
  box-shadow: -4px 0 12px rgba(0,0,0,0.4);
}

.insights-panel.active {
  right: 0;
}

.close-insights {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
}

.post-preview {
  margin: 1.5rem 0;
  border-bottom: 1px solid #333;
  padding-bottom: 1rem;
}

.view-all {
  display: inline-block;
  margin-top: 1rem;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}
.view-all:hover{
  color: var(--secondary-color-light);
}

/* POPUPS */
.blog-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 1000;
  overflow-y: auto;
  transition: transform 0.5s ease;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.blog-popup-content {
  margin: 1rem auto;
  position: relative;
}

.blog-popup-content.slide-down {
  animation: slideDown 0.5s ease forwards;
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-blog-popup {
  position: fixed;
  top: -70px;
  right: 30px;
  font-size: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10001;
  color: #333;
}

/* Optional: Scroll styling */
.blog-popup-overlay::-webkit-scrollbar {
  width: 8px;
}
.blog-popup-overlay::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

/* Carousel */
.image-carousel {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: baseline;
}

.carousel-thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.carousel-thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s;
}

.carousel-thumbnails img:hover {
  transform: scale(1.05);
}

/* Modal */
.image-viewer-modal {
  position: fixed; /* YES! Not absolute */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 10001; /* above popup */
  padding: 1rem;
}


.image-viewer-content {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.image-viewer-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 10;
}

/* Footer */
 .floating-footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: var(--dark-bg-2); /* light with slight transparency */
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    font-family: sans-serif;
  }

  .floating-footer .footer-content {
    text-align: center;
    font-size: 14px;
    color: #d5d5d5;
  }

  .floating-footer .footer-content a {
    color: #2e4859;
    text-decoration: none;
    font-weight: 600;
  }

  .floating-footer .footer-content a:hover {
    text-decoration: underline;
  }

  @media (max-width: 768px) {
  .floating-footer {
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
    padding: 12px 10px;
    text-align: center;
  }

  .floating-footer .footer-content {
    font-size: 13px;
    line-height: 1.4;
  }

  .floating-footer .footer-content a {
    display: inline-block;
    margin-top: 4px;
  }
}

