html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(45deg, #2937f0, #9f1ae2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 100px;
    background: #fff;
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0% 100%);
}

/* Feature Cards */
.feature-card {
    height: 100%;
    display: flex;
}

.feature-card .card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.feature-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem !important;
}

.feature-card .card-text {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 1.5rem !important;
}

.hover-float {
    transition: transform 0.3s ease;
}

.hover-float:hover {
    transform: translateY(-10px);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Background Colors */
.bg-pink { background: #ff4f81; }
.bg-blue { background: #2937f0; }
.bg-purple { background: #9f1ae2; }
.bg-orange { background: #ff8f3f; }
.bg-green { background: #28a745; }

/* Gradient Card */
.gradient-card {
    background: linear-gradient(45deg, #2937f0, #9f1ae2);
}

/* Custom Button */
.btn-gradient {
    background: linear-gradient(45deg, #2937f0, #9f1ae2);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(45deg, #1e2bc8, #8516c0);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Animations */
.animate__animated {
    animation-duration: 1s;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Language Switcher Styles */
.language-switcher {
    margin-left: 1rem;
}

.language-switcher .btn-link {
    text-decoration: none;
    padding: 0.5rem 1rem;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-switcher .dropdown-menu {
    min-width: 160px;
    padding: 0.5rem 0;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

.language-switcher .dropdown-item {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.language-switcher .flag-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* User Profile Styles */
.nav-item.dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item.dropdown img {
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dropdown-menu {
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item i {
    font-size: 1.1rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Language dropdown */
.dropdown-item.active {
    background-color: #f8f9fa;
    color: #000;
}

.dropdown-item .bi-check2 {
    width: 16px;
    display: inline-block;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.language-flag {
    width: 20px;
    height: 15px;
    margin-right: 8px;
}

.category-card {
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-card .bi {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #007bff, #00bcd4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.template-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.template-categories button {
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.template-categories button.active {
    background: linear-gradient(45deg, #007bff, #00bcd4);
    border-color: transparent;
    color: white;
}