/* Royal Blue Theme */
:root {
    --primary: #0652DD;
    --secondary: #1B1464;
    --accent: #FFC312;
    --hover: #FFC312;
    --background: #f1f2f6;
    --text: #2f3640;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text);
    background-color: var(--background);
}

h1, h2, h3, .font-display {
    font-family: 'Kanit', sans-serif;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.btn_one {
    background-color: var(--primary);
    color: white;
    transition: all 0.3s ease;
}

.btn_one:hover {
    background-color: var(--hover);
}

header {
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header.scrolled #logo,
header.scrolled #navigation a {
    color: var(--primary);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

#loading {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background);
    z-index: 50;
}

#magnify {
    position: fixed;
    inset: 0;
    background-color: rgba(60, 35, 24, 0.9);
    z-index: 50;
    display: none;
    flex-direction: column;
    justify-content: center;
}

#img_here {
    width: 80%;
    height: 80%;
    margin: auto;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.gradient-maple-text {
    background-image: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@supports not (background-clip: text) {
    .gradient-maple-text {
        background-image: none;
        color: var(--primary);
    }
}

.service-item {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(60, 35, 24, 0.1);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(60, 35, 24, 0.2);
}

.service-bg {
    filter: blur(10px);
    transform: scale(1.1);
}

.service-content {
    height: 100%;
    transition: background-color 0.3s ease;
}

.service-item:hover .service-content {
    background-color: rgba(255, 248, 231, 0.3);
}

#team .grid > div {
    display: flex;
    flex-direction: column;
  }
  
  #team .grid > div > .p-6 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  
  #team .grid > div > .p-6 > .flex {
    margin-top: auto;
  }