/* Font Faces */
@font-face {
    font-family: 'IBM Plex Sans';
    src: url('../font/IBMPlexSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('../font/IBMPlexSans-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('../font/IBMPlexSans-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('../font/IBMPlexSans-BoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('../font/IBMPlexSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'IBM Plex Sans';
    src: url('../font/IBMPlexSans-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

/* Color Variables */
:root {
    --primary-color: #68c1ca;
    --primary-color-dark: #4da7b2;
    --primary-color-light: #8fd0d8;
    --secondary-color: #4270b6;
    --secondary-color-dark: #3660a0;
    --secondary-color-light: #6a8fd0;
    --primary-text: #333333;
    --secondary-text: #666666;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-primary-hover: linear-gradient(135deg, var(--primary-color-dark), var(--secondary-color-dark));
    --gradient-reverse: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Main Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--primary-text);
}

main {
    flex: 1;
}

/* Navbar Styles */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 500;
}

.navbar {
    background-color: #ffffff !important;
    border-bottom: 3px solid;
    border-image: var(--gradient-primary) 1;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.9);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.dropdown-item {
    transition: all 0.3s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-image: var(--gradient-primary);
    color: white;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link:focus {
    color: rgba(255, 255, 255, 0.8) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link:focus::after {
    width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 500;
}

h1 {
    position: relative;
    margin-bottom: 1.5rem;
}

h1.display-4 {
    background-image: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
}

h2 {
    position: relative;
    margin-bottom: 1.5rem;
}

h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-image: var(--gradient-primary);
    margin: 15px auto;
    border-radius: 2px;
}

.text-gradient-primary {
    background-image: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent !important;
    display: inline-block;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-light {
    font-weight: 300 !important;
}

.lead {
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* Footer Styles */
footer {
    margin-top: auto;
    background-color: #f8f9fa;
    border-top: 3px solid;
    border-image: var(--gradient-primary) 1;
    padding: 2rem 0;
    color: var(--secondary-text);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background-image: var(--gradient-primary);
    opacity: 0.7;
}

/* Partner Logos */
.partner-logos {
    max-width: 100%;
    height: 50px;
    margin-bottom: 15px;
    object-fit: contain;
}

.partner-logos-container {
    margin-top: 15px;
}

/* Button Styles */
.btn-primary {
    background-image: var(--gradient-primary) !important;
    border: none !important;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover, .btn-primary:focus {
    background-image: var(--gradient-primary-hover) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
}

.btn-light {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-light:hover, .btn-light:focus {
    background-color: #e9ecef;
    border-color: #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-light.animated-link:hover {
    background-image: linear-gradient(rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.03));
    color: var(--primary-color);
}

.btn-outline-secondary, .btn-outline-primary {
    background: transparent !important;
    color: var(--secondary-color) !important;
    border: 2px solid transparent !important;
    background-clip: padding-box !important;
    position: relative;
    transition: all 0.3s ease;
}

.btn-outline-secondary::before, .btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    margin: -2px;
    border-radius: inherit;
    background-image: var(--gradient-primary);
}

.btn-outline-secondary:hover, .btn-outline-secondary:focus,
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-image: var(--gradient-primary) !important;
    color: white !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
}

/* Feature Icons */
.feature-icon {
    background-image: var(--gradient-primary) !important;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Header Logo */
.header-logo {
    height: 35px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* Card Styles */
.card {
    transition: box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-image: var(--gradient-primary);
    opacity: 0.8;
}

.card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

.card:hover::before {
    height: 5px;
}

.card-title {
    background-image: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.card:hover .card-title {
    transform: translateY(-2px);
}

/* Link Styles */
a {
    color: var(--secondary-color);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

a.animated-link, button.animated-link {
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

a.animated-link::after, button.animated-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-image: var(--gradient-primary);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

a.animated-link:hover::after, button.animated-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

a.animated-link:hover, button.animated-link:hover {
    color: var(--primary-color);
}

/* Custom Background Classes */
.bg-primary-light {
    background-color: var(--primary-color-light) !important;
}

.bg-primary {
    background-image: var(--gradient-primary) !important;
}

.bg-gradient-primary {
    background-image: var(--gradient-primary) !important;
}

.bg-gradient-reverse {
    background-image: var(--gradient-reverse) !important;
}

.text-gradient {
    background-image: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
}

.border-gradient {
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.border-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    margin: -3px;
    border-radius: inherit;
    background-image: var(--gradient-primary);
}

/* Animation Effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
    animation: fadeIn 1s ease-out;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--gradient-primary);
    opacity: 0.05;
    z-index: -1;
}

.hero-image {
    animation: pulse 5s infinite ease-in-out;
}

/* Call to Action Styles */
.cta-section {
    background-image: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientFlow 10s infinite linear;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cta-section h2, .cta-section p, .cta-section .btn {
    color: white !important;
}

.cta-section .btn-primary {
    background: white !important;
    color: var(--secondary-color) !important;
    border: none;
}

.cta-section .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9) !important;
}

/* Dashboard Styles */
.list-group-item.active {
    background-image: var(--gradient-primary) !important;
    border-color: transparent !important;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    background-image: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 500;
}

.avatar-initials {
    font-size: 1.2rem;
    color: white;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-image: linear-gradient(135deg, rgba(104, 193, 202, 0.1), rgba(66, 112, 182, 0.1));
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-circle:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.bg-light-primary {
    background-image: linear-gradient(135deg, rgba(104, 193, 202, 0.1), rgba(66, 112, 182, 0.1));
}

.bg-light-success {
    background-image: linear-gradient(135deg, rgba(66, 112, 182, 0.1), rgba(104, 193, 202, 0.1));
}

.bg-light-info {
    background-image: linear-gradient(135deg, rgba(104, 193, 202, 0.1), rgba(66, 112, 182, 0.1));
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--secondary-color) !important;
}

.text-info {
    color: var(--primary-color) !important;
}

.icon-circle .text-primary,
.icon-circle .text-success,
.icon-circle .text-info {
    background-image: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent !important;
}

.card-header.bg-white {
    position: relative;
    border-bottom: 2px solid;
    border-image: var(--gradient-primary) 1;
}

/* Pagination Styles */
.pagination .page-item.active .page-link {
    background-image: var(--gradient-primary) !important;
    border-color: transparent !important;
    color: white !important;
}

.pagination .page-link {
    color: var(--secondary-color);
    border-color: #dee2e6;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    color: var(--primary-color);
    background-color: rgba(104, 193, 202, 0.1);
    border-color: #dee2e6;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .partner-logos {
        height: 40px;
    }
    
    .header-logo {
        height: 30px;
        max-width: 150px;
    }
    
    footer img[src*="UMKMate Logo Horizontal.png"] {
        height: 35px !important;
        max-width: 100%;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .cta-section {
        padding: 2rem;
    }
}