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

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #012E67;
    /* TRACEZ Navy Blue */
    --accent-color: #67B346;
    /* TRACEZ Green */
    --accent-light: rgba(103, 179, 70, 0.1);
    --bg-color: #F8FAFC;
    --text-main: #1F2937;
    --text-muted: #64748B;
    --white: #ffffff;
    --card-shadow: 0 10px 30px -5px rgba(1, 46, 103, 0.05);
    --card-shadow-hover: 0 20px 40px -10px rgba(1, 46, 103, 0.1);
    --card-radius: 20px;
    --btn-radius: 12px;
    --section-padding: 100px;
    --section-padding-mobile: 60px;
}

.elegant-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, transparent 100%);
    margin: 20px 0 30px;
    border-radius: 2px;
}

.accent-line-left {
    border-left: 1px solid rgba(1, 46, 103, 0.1);
    padding-left: 40px;
}

section,
.section {
    padding: var(--section-padding) 0;
    position: relative;
    background: var(--white);
}

#home {
    background: linear-gradient(180deg, #F1F5F9 0%, #FFFFFF 100%);
}

#about {
    background: linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 100%);
}

#ticam {
    background: linear-gradient(180deg, #E2E8F0 0%, #FFFFFF 100%);
}

#portals {
    background: linear-gradient(180deg, #FFFFFF 0%, #F1F7FF 100%);
}

.corporative-bg {
    background: linear-gradient(135deg, rgba(1, 46, 103, 0.05) 0%, rgba(103, 179, 70, 0.05) 100%) !important;
}

@media (max-width: 991px) {

    section,
    .section {
        padding: var(--section-padding-mobile) 0;
    }
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.card-title {
    font-size: 20px;
    font-weight: 600;
}

.body-text {
    font-size: 17px;
    color: var(--text-muted);
}

/* Global Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(1, 46, 103, 0.05);
    padding: 18px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.nav-link {
    font-weight: 500;
    color: var(--text-main) !important;
    margin: 0 12px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

/* Enhanced Hero Section */
.hero-wrapper {
    position: relative;
    padding-top: 160px;
    padding-bottom: 120px;
    overflow: hidden;
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    display: flex;
    align-items: center;
    min-height: 80vh;
}

@media (max-width: 991px) {
    .hero-wrapper {
        padding-top: 120px;
        padding-bottom: 60px;
    }
}

/* Decorative Elements */
.hero-mandala {
    position: absolute;
    top: 50%;
    left: -150px;
    width: 600px;
    height: 600px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='%23012E67' fill-opacity='0.1'%3E%3Cpath d='M100 0c11 0 20 9 20 20s-9 20-20 20-20-9-20-20 9-20 20-20zm0 160c11 0 20 9 20 20s-9 20-20 20-20-9-20-20 9-20 20-20zM40 100c0-11 9-20 20-20s20 9 20 20-9 20-20 20-20-9-20-20zm120 0c0-11 9-20 20-20s20 9 20 20-9 20-20 20-20-9-20-20zM100 10c49.7 0 90 40.3 90 90s-40.3 90-90 90-90-40.3-90-90 40.3-90 90-90zm0 178c48.6 0 88-39.4 88-88s-39.4-88-88-88-88 39.4-88 88 39.4 88 88 88z'/%3E%3Cpath d='M100 20c44.1 0 80 35.9 80 80s-35.9 80-80 80-80-35.9-80-80 35.9-80 80-80m0-2C44.8 18 0 62.8 0 118s44.8 100 100 100 100-44.8 100-100S155.2 18 100 18z'/%3E%3Cpath d='M100 50c27.6 0 50 22.4 50 50s-22.4 50-50 50-50-22.4-50-50 22.4-50 50-50m0-2c-28.7 0-52 23.3-52 52s23.3 52 52 52 52-23.3 52-52-23.3-52-52-52z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.card-mandala-green {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='%2367B346' fill-opacity='0.08'%3E%3Cpath d='M100 0c11 0 20 9 20 20s-9 20-20 20-20-9-20-20 9-20 20-20zm0 160c11 0 20 9 20 20s-9 20-20 20-20-9-20-20 9-20 20-20zM40 100c0-11 9-20 20-20s20 9 20 20-9 20-20 20-20-9-20-20zm120 0c0-11 9-20 20-20s20 9 20 20-9 20-20 20-20-9-20-20zM100 10c49.7 0 90 40.3 90 90s-40.3 90-90 90-90-40.3-90-90 40.3-90 90-90zm0 178c48.6 0 88-39.4 88-88s-39.4-88-88-88-88 39.4-88 88 39.4 88 88 88z'/%3E%3Cpath d='M100 20c44.1 0 80 35.9 80 80s-35.9 80-80 80-80-35.9-80-80 35.9-80 80-80m0-2C44.8 18 0 62.8 0 118s44.8 100 100 100 100-44.8 100-100S155.2 18 100 18z'/%3E%3Cpath d='M100 50c27.6 0 50 22.4 50 50s-22.4 50-50 50-50-22.4-50-50 22.4-50 50-50m0-2c-28.7 0-52 23.3-52 52s23.3 52 52 52 52-23.3 52-52-23.3-52-52-52z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}


.hero-subtitle {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-light);
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    margin-bottom: 24px;
}

/* Buttons */
.btn-corp {
    padding: 14px 32px;
    font-weight: 600;
    border-radius: var(--btn-radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary-corp {
    background: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-primary-corp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(1, 46, 103, 0.2);
    color: var(--white) !important;
}

.btn-accent-corp {
    background: var(--accent-color);
    color: var(--white);
    border: none;
}

.btn-accent-corp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(103, 179, 70, 0.2);
    color: var(--white) !important;
}

.btn-outline-corp {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-corp:hover {
    background: var(--primary-color);
    color: var(--white) !important;
}

.btn-outline-dark {
    border: 2px solid #1F2937;
    color: #1F2937;
    background: transparent;
}

.btn-outline-dark:hover {
    background: #1F2937;
    color: var(--white) !important;
}

/* Auth Drawer Styles */
.auth-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 46, 103, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.auth-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background: var(--white);
    z-index: 2001;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 40px;
    overflow-y: auto;
}

.auth-drawer.active {
    right: 0;
}

.drawer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F1F5F9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.drawer-close:hover {
    background: #E2E8F0;
    transform: rotate(90deg);
}

/* Professional Cards */
.corp-card {
    background: var(--white);
    border-radius: var(--card-radius);
    padding: 32px;
    border: 1px solid rgba(1, 46, 103, 0.05);
    box-shadow: 0 4px 20px rgba(1, 46, 103, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.corp-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(1, 46, 103, 0.02) 0%, transparent 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.corp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(1, 46, 103, 0.08);
    border-color: rgba(103, 179, 70, 0.3);
}

.corp-card:hover::after {
    opacity: 1;
}

/* Services Grid */
.service-icon-box {
    width: 64px;
    height: 64px;
    background: var(--accent-light);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 28px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.corp-card:hover .service-icon-box {
    background: var(--accent-color);
    color: var(--white);
    transform: rotate(10deg);
}

/* Portal Section Redesign */
.portal-panel {
    background: var(--white);
    border-radius: 24px;
    border: 1px solid rgba(1, 46, 103, 0.08);
    box-shadow: 0 10px 40px -10px rgba(1, 46, 103, 0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    padding: 0 !important;
    overflow: hidden;
    margin-bottom: 30px;
}

.portal-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(1, 46, 103, 0.1), 0 18px 36px -18px rgba(0, 0, 0, 0.1);
    border-color: rgba(1, 46, 103, 0.1);
}

.portal-content-box {
    padding: 50px;
}

.portal-feature-list {
    background: #F8FAFC;
    border-radius: 20px;
    padding: 40px;
    height: 100%;
}

.portal-icon-bg {
    width: 72px;
    height: 72px;
    background: #F8FAFC;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(1, 46, 103, 0.05), inset 0 0 0 1px rgba(1, 46, 103, 0.05);
}

.accent .portal-icon-bg,
.dark .portal-icon-bg {
    background: #F8FAFC;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(1, 46, 103, 0.05), inset 0 0 0 1px rgba(1, 46, 103, 0.05);
}

.portal-check {
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 3px;
}

.accent .portal-check,
.dark .portal-check {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* About Section Enhancements */
.about-image-wrapper {
    position: relative;
    padding: 0;
}

.about-image-wrapper img {
    border-radius: var(--card-radius);
    box-shadow: 0 30px 60px rgba(1, 46, 103, 0.1);
    width: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image-wrapper:hover img {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 40px 80px rgba(1, 46, 103, 0.15);
}

@media (min-width: 992px) {
    .ps-custom-lg {
        padding-left: 60px !important;
    }
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 0;
    background: var(--white);
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 200px;
}

.experience-badge h3 {
    font-size: 32px;
    margin-bottom: 4px;
    color: var(--accent-color);
}

.experience-badge p {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

/* Footer Refinement */
.main-footer {
    background: linear-gradient(135deg, #0F172A 0%, #012E67 100%);
    color: rgba(255, 255, 255, 0.7);
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -200px;
    width: 800px;
    height: 800px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M100 0c11 0 20 9 20 20s-9 20-20 20-20-9-20-20 9-20 20-20zm0 160c11 0 20 9 20 20s-9 20-20 20-20-9-20-20 9-20 20-20zM40 100c0-11 9-20 20-20s20 9 20 20-9 20-20 20-20-9-20-20zm120 0c0-11 9-20 20-20s20 9 20 20-9 20-20 20-20-9-20-20zM100 10c49.7 0 90 40.3 90 90s-40.3 90-90 90-90-40.3-90-90 40.3-90 90-90zm0 178c48.6 0 88-39.4 88-88s-39.4-88-88-88-88 39.4-88 88 39.4 88 88 88z'/%3E%3Cpath d='M100 20c44.1 0 80 35.9 80 80s-35.9 80-80 80-80-35.9-80-80 35.9-80 80-80m0-2C44.8 18 0 62.8 0 118s44.8 100 100 100 100-44.8 100-100S155.2 18 100 18z'/%3E%3Cpath d='M100 50c27.6 0 50 22.4 50 50s-22.4 50-50 50-50-22.4-50-50 22.4-50 50-50m0-2c-28.7 0-52 23.3-52 52s23.3 52 52 52 52-23.3 52-52-23.3-52-52-52z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}



.footer-logo {
    height: 52px;
    width: auto;
    border-radius: 8px;
    /* Added subtle rounding for better integration */
}

.footer-bio {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.8;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    color: var(--white);
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-info li i {
    font-size: 18px;
    color: var(--accent-color);
}

.text-inherit {
    color: inherit;
    text-decoration: none;
}

.text-inherit:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding-top: 30px;
}

.opacity-60 {
    opacity: 0.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-title {
        font-size: 42px;
    }

    .section-title {
        font-size: 30px;
    }

    section {
        padding: 70px 0;
    }
}