* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Added for better box model handling */
}

:root {
    --primary-color: #3d2b98;
    --secondary-color: #e74c3c;
    --accent-color: #343fdb;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

body {
    background-color: #f6f4f2;
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden; /* Prevent horizontal scroll */
}
#sparkle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
}
.bg-lines {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(90deg);
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #3d2b98;
}

.c1 {
    color: #3d2b98;
}
p{
    margin-bottom: 0;
}
a{
    text-decoration: none;
    color: inherit;
}
/* Header */
.navbar-brand img {
    width: 180px;
    height: auto; /* Maintain aspect ratio */
}

.navbar .nav-link {
    margin: 0 20px;
    font-weight: 600;
    display: inline-block;
}
.navbar i {
    background-color: #3d2b98;
    width: 50px;
    height: 50px;
    color: #fff !important;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.navbar i:hover {
    background-color: #3d2b98;
    color: #fff;
    transform: scale(1.1);
}
/* Hero Section */
.hero-img {
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-img img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border: 2px solid rgb(0, 26, 112);
    border-radius: 20px;
    transition: transform 0.5s ease; /* Added transition for image */
}

.hero-img:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.hero-img:hover img {
    transform: scale(1.03); /* Scale image on hover */
}
.hero-img2 {
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-img2 img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border: 2px solid rgb(0, 26, 112);
    border-radius: 20px;
    transition: transform 0.5s ease; /* Added transition for image */
}

.hero-img2:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.hero-img2:hover img {
    transform: scale(1.03); /* Scale image on hover */
}

/* Products */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    border-radius: 0;
    background-color: #3d2b98;
}

.nav-pills .nav-link {
    border: 1px solid #3d2b98;
    border-radius: 0;
    color: #3d2b98;
}

.my-swiper-button-next,
.my-swiper-button-prev {
    background: #3d2b98;
    color: #fff;
    font-size: 20px;
    padding: 8px 15px;
    margin-top: 20px;
    border: none;
    cursor: pointer;
}

.swiper-slide {
    border: 1px solid #3d2b98;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.swiper-slide img {
    transition: transform 0.5s ease;
    width: 100%;
    height: auto; /* Maintain aspect ratio */
}



.swiper-slide:hover img {
    transform: scale(1.1);
}

/* About Section */
.about-img {
    overflow: hidden;
    border-radius: 10px;
}

.about-img img {
    height: 600px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.8s ease;
}

.about-img:hover img {
    transform: scale(1.05);
}

/* Git Section */
.gitsection i {
    background-color: #fff;
    width: 50px;
    height: 50px;
    color: #3d2b98;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.gitsection i:hover {
    background-color: #3d2b98;
    color: #fff;
    transform: scale(1.1);
}

/* Forms */
.btn-submit {
    background-color: #3d2b98;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

input.form-control {
    height: 53px;
}

/* Footer */
footer {
    background-color: #3d2b98;
}

/* Header animations */
.navbar {
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    padding-top: 10px;
    padding-bottom: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link {
    position: relative;
    transition: color 0.3s ease;
    font-weight: 500;
}

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

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

.navbar .nav-link:hover {
    color: var(--secondary-color) !important;
}
 
/* Form animations */
.form-control {
    border: none;
    border-bottom: 2px solid #ddd;
    border-radius: 0;
    padding-left: 0;
    background: transparent;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: none;
    border-bottom-color: var(--accent-color);
    outline: none;
}

.btn-submit {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
 /* Container */
.custom-dropdown {
  position: relative;
  display: inline-block;
  width: 260px;
  font-family: "Segoe UI", sans-serif;
  z-index: 10;
}

/* Toggle Button */
.custom-dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 320px;
}
.custom-dropdown .cd-toggle {
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 15px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.custom-dropdown .cd-menu {
  display: none;
  position: absolute;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  top: 100%;
  left: 0;
  z-index: 1000;
}
.custom-dropdown .cd-menu li {
  padding: 10px 15px;
  cursor: pointer;
}
.custom-dropdown .cd-menu li:hover,
.custom-dropdown .cd-menu li.active {
  background: #f8f9fa;
}
.custom-dropdown.open .cd-menu {
  display: block;
}

/* Animation classes */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
}

/* Responsive Design */


@media (max-width: 768px) {
    .navbar .nav-link {
        margin: 5px 10px;
    }
    
    .hero-img img {
        height: 400px;
    }
    
    .about-img img {
        height: 400px;
    }
    
    .hero-left-circle,
    .left-circle1,
    .left-circle2 {
        display: none; /* Hide complex animations on mobile */
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus,
a:focus,
.form-control:focus {
    /* outline: 2px solid var(--accent-color); */
    outline-offset: 2px;
}