/* 
 * UTECHRP Enterprise Consulting Platform - Custom Stylesheet
 * Premium, Modern corporate design inspired by enterprise visual aesthetics.
 */

/* 1. Imports and Variables */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0B3C5D;
    --secondary: #00A8E8;
    --accent: #2EC4B6;
    --dark: #0F172A;
    --bg-light: #F8FAFC;
    --text-main: #334155;
    --text-muted: #475569;
    --white: #ffffff;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
}

/* 2. Base resets and styles */
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 700;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--primary);
}

/* 3. Sticky Navbar & Glassmorphism */
.navbar-custom {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: var(--transition);
}

.navbar-custom.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-custom.scrolled .navbar-brand,
.navbar-custom.scrolled .nav-link {
    color: var(--white) !important;
}

.navbar-custom.scrolled .nav-link.active {
    color: var(--secondary) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    padding: 0.5rem 1rem !important;
    position: relative;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 20px);
}

.nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
}

/* Navbar Brand & Logo spacing */
.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0;
    margin-bottom: 0;
}

.navbar-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    display: block;
}

/* Scrolled styling for the logo (compact size + drop-shadow for dark contrast) */
.navbar-custom.scrolled .navbar-logo {
    height: 54px !important;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.75));
}

/* Responsive adjustment for mobile viewports */
@media (max-width: 991.98px) {
    .navbar-logo {
        height: 52px !important;
    }
    .navbar-custom.scrolled .navbar-logo {
        height: 46px !important;
    }
}

/* 4. Buttons styling */
.btn-custom-primary {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    border: 1px solid var(--primary);
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    transition: var(--transition);
}
.btn-custom-primary:hover {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-custom-secondary {
    background-color: var(--secondary);
    color: var(--white);
    font-weight: 600;
    border: 1px solid var(--secondary);
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    transition: var(--transition);
}
.btn-custom-secondary:hover {
    background-color: var(--white);
    color: var(--secondary);
    box-shadow: var(--shadow-md);
}

.btn-custom-accent {
    background-color: var(--accent);
    color: var(--white);
    font-weight: 600;
    border: 1px solid var(--accent);
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    transition: var(--transition);
}
.btn-custom-accent:hover {
    background-color: transparent;
    color: var(--accent);
    box-shadow: var(--shadow-md);
}

.btn-custom-outline {
    background-color: transparent;
    color: var(--primary);
    font-weight: 600;
    border: 2px solid var(--primary);
    padding: 0.65rem 1.65rem;
    border-radius: 8px;
    transition: var(--transition);
}
.btn-custom-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* 5. Hero Section styling */
.hero-section {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    padding: 9rem 0 7rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -150px;
    background: radial-gradient(circle, rgba(46, 196, 182, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-title {
    font-size: 3.25rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: linear-gradient(to right, #00A8E8, #2EC4B6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image-wrapper img {
    transition: transform 6s ease-in-out;
}

.hero-image-wrapper:hover img {
    transform: scale(1.05);
}

/* 6. Section Typography */
.section-subtitle {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    margin-top: 0.75rem;
    border-radius: 2px;
}

.section-title.center::after {
    margin-left: auto;
    margin-right: auto;
}

/* 7. Hover Cards (Services & Features) */
.hover-card {
    background-color: var(--white);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(0, 168, 232, 0.2);
}

.hover-card .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: rgba(0, 168, 232, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--secondary);
    transition: var(--transition);
}

.hover-card:hover .icon-wrapper {
    background-color: var(--secondary);
    color: var(--white);
}

/* 8. Statistics Counter CSS */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, #082d47 100%);
    color: var(--white);
    position: relative;
}

.stats-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stats-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* 9. Timeline Style */
.timeline-wrapper {
    position: relative;
    padding: 3rem 0;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: rgba(11, 60, 93, 0.1);
    top: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 4px solid var(--white);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.timeline-panel {
    width: 45%;
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid rgba(15, 23, 42, 0.03);
}

.timeline-item:nth-child(even) .timeline-panel {
    margin-left: auto;
}

.timeline-item:nth-child(odd) .timeline-panel {
    margin-right: auto;
}

/* Responsive Timeline adjustment */
@media (max-width: 768px) {
    .timeline-wrapper::before {
        left: 20px;
    }
    .timeline-badge {
        left: 20px;
    }
    .timeline-panel {
        width: calc(100% - 50px);
        margin-left: 50px !important;
        margin-right: 0 !important;
    }
}

/* 10. Call To Action Form styling */
.cta-form {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

/* 11. Footer Styling */
.footer-section {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-section h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-right: 0.5rem;
    transition: var(--transition);
}

.footer-social-link:hover {
    background-color: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

/* 12. Accordions / FAQ customization */
.accordion-item {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 12px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark);
    background-color: var(--white);
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    color: var(--secondary);
    background-color: rgba(0, 168, 232, 0.03);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 168, 232, 0.2);
}

/* 13. Admin Panel Theme */
.admin-sidebar {
    background-color: var(--dark);
    min-height: 100vh;
    color: var(--white);
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    border-radius: 6px;
    margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link i {
    color: var(--secondary) !important; /* Make sidebar icons brighter and distinct */
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: var(--white) !important;
    background-color: rgba(255, 255, 255, 0.08);
}

.admin-sidebar .nav-link.active {
    border-left: 4px solid var(--secondary);
}

.admin-sidebar .text-muted {
    color: #94a3b8 !important; /* Force high contrast for small text in sidebar */
}

.login-header .text-muted {
    color: #cbd5e1 !important; /* Force high contrast for small text in login header */
}

/* Responsive Overrides and Utilities */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

.bg-accent-light {
    background-color: rgba(46, 196, 182, 0.05) !important;
}

.bg-secondary-light {
    background-color: rgba(0, 168, 232, 0.05) !important;
}

.card-img-container {
    height: 220px;
    overflow: hidden;
    position: relative;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.badge-issn {
    background-color: rgba(11, 60, 93, 0.1);
    color: var(--primary);
    font-weight: 600;
}

/* 14. High contrast readability overrides for dark sections */
.hero-section .text-muted,
.footer-section .text-muted,
.footer-section p.text-muted,
.footer-section ul.text-muted,
.footer-section li.text-muted {
    color: #94a3b8 !important; /* Brighter slate-grey for legibility on dark backgrounds */
}

.footer-section {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* 15. Custom Journal Card Design Matching Reference Mockup */
.journal-card-accent {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 1.25rem 1.5rem 1.25rem 1.75rem;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
    height: 100%;
}

.journal-card-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    border-color: #CBD5E1;
}

.journal-card-accent.active-card {
    border-color: #2563EB;
    background-color: #F1F5F9;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.journal-card-accent .journal-card-stripe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 6px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.journal-card-accent .journal-number-header {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: #0B2545;
    margin-bottom: 0.4rem;
}

.journal-card-accent .journal-title-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
    line-height: 1.45;
    margin-bottom: 0;
}

