@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

/* browser default styling */
html {
  scroll-behavior: smooth;
}

/* customized scrollbar for chrome desktop version only */
/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: none;
}

/* Handle */
::-webkit-scrollbar-thumb:hover {
  background: #228891;
}

/* Handle on hover */
::-webkit-scrollbar-thumb {
  background: #228891;
  /* Old browsers */
  background: -moz-linear-gradient(-45deg, #228891 1%, #22889152 60%, #2288913c 79%, #22889100 100%);
  /* FF3.6-15 */
  background: -webkit-linear-gradient(-45deg, #228891 1%, #22889152 60%, #2288913c 79%, #22889100 100%);
  /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(135deg, #228891 1%, #22889152 60%, #2288913c 79%, #22889100 100%);
  /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#228891', endColorstr='#22889100', GradientType=1);
  /* IE6-9 fallback on horizontal gradient */
  border: 1px solid #fff;
}

/* Base styles with better performance */
body {
  font-family: "Nunito", sans-serif;
  overflow-x: hidden;
  color: #333;
  line-height: 1.6;
}

/* Image optimization */
img {
  max-width: 100%;
  height: auto;
}

a, a:hover, a:visited, a:focus {
  text-decoration: none !important;
  transition: color 0.3s ease;
}

/* hero section styling - using more efficient gradient */
#hero {
  color: rgb(0, 0, 0);
  background: linear-gradient(135deg, #228891 1%, #22889152 60%, #2288913c 79%, #22889100 100%);
}

/* navbar styling */
.navbar {}

/* logo/brandname styling */
.navbar-brand {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 3.5em !important;
  color: #333 !important;
}

.nav-items {
  padding: 0 5px;
}

.nav-link {
  color: #333 !important;
}

.nav-link:hover {
  color: rgb(255, 255, 255) !important;
}

/* hero row styling */
.hero-row {
  margin-top: 10%;
}

/* hero description styling */
.hero-description {
  margin-top: 5%;
  margin-left: 3%;
}

/* hero button styling */
.get-started-button, .join-community-button {
  margin-right: 5px;
}

/* hero image styling */
.hero-img {
  margin-top: -10%;
  padding-bottom: 10%;
  margin-left: 40%;
  transform: rotate(20deg);
}

/* hero title styling */
.hero-title {
  color: #ffffff;
  font-family: "Nunito", sans-serif;
  text-shadow: 1px 2px 8px rgba(0, 0, 0, .3);
  line-height: 1.5;
}

/* features section styling */
#features {
  padding: 5% 20%;
}

.features-box {
  text-align: center;
  margin-bottom: 2rem;
}

h2, h3 {
  font-family: "Nunito", sans-serif !important;
  font-weight: 700 !important;
  margin-bottom: 1rem;
}

.features-icons {
  font-size: 55px;
  color: #000000;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.features-icons:hover {
  transform: scale(1.3);
}

/* Blog styles */
.post {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.post-title {
  color: #228891;
}

.post-date {
  color: #666;
  font-size: 0.9rem;
}

.sidebar-section {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 5px;
}

.tags .badge {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* press section styling */
#press {
  text-align: center;
  margin-bottom: 5%;
  padding-top: 4%;
  padding-bottom: 4%;
}

.press-image {
  width: 15%;
  padding: 0 2% 0 2%;
}

.rotated-icon {
  transform: rotate(-45deg);
}

h4 {
  font-weight: 700 !important;
}

/* call to action section styling */
#cta {
  text-align: center;
  padding: 10% 10%;
  background-color: #f5f5f7;
}

#cta p {
  margin-bottom: 3%;
}

/* footer section styling */
#footer {
  background: #fff;
  color: #000000;
  text-align: center;
  padding: 1% 0%;
}

.meet-the-dev {
  margin-bottom: 10px;
  text-shadow: 1px 2px 8px rgba(0, 0, 0, .3);
}

.copyright-text {
  font-size: 14px;
}

/*--------------------------------------------------------------
|                                                              |
|     Media Queries & Responsive Styling Starts From Here     |
|                                                              |
---------------------------------------------------------------*/

/* Mobile First Approach */
/* Base styles for mobile (up to 600px) */
h1 {
  font-size: 1.8rem;
}

h2, h3 {
  font-size: 1.4rem;
}

p {
  font-size: 16px;
}

button {
  padding: 8px 16px;
}

#hero {
  text-align: center;
}

.hero-row {
  text-align: center;
  padding-bottom: 20%;
}

.hero-description {
  margin-top: 0;
  padding: 20% 0;
}

.hero-img {
  max-height: 60%;
  margin: 0 auto;
  padding-bottom: 0;
  transform: rotate(0deg);
}

#features {
  padding: 10% 10%;
}

.carousel-item img {
  width: 20%;
}

.carousel-item {
  padding: 5% 5%;
}

#footer {
  padding: 1% 1.5% 2% 1.5%;
}

/* Tablet styles (600px to 990px) */
@media only screen and (min-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  
  h2, h3 {
    font-size: 1.5rem;
  }
  
  #features {
    padding: 5% 15%;
  }
}

/* Desktop styles (990px and above) */
@media only screen and (min-width: 990px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2, h3 {
    font-size: 1.8rem;
  }
  
  #hero {
    text-align: left;
  }
  
  .hero-row {
    margin-top: 5%;
    text-align: left;
    padding-bottom: 5%;
  }
  
  .hero-description {
    margin-top: 5%;
    padding: 0;
  }
  
  .hero-img {
    margin-top: -10%;
    margin-left: 40%;
    transform: rotate(20deg);
  }
  
  #features {
    padding: 5% 20%;
  }
}

/* Extra large screens (1200px and above) */
@media only screen and (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Screen reader only class for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduce motion for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .features-icons:hover {
    transform: none;
  }
  
  a, a:hover {
    transition: none;
  }
}

