:root {
    --primary-blue: #1347cc;
    --secondary-pink: #000000;
    --text-dark: #0e1733;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --card-bg: #ffffff;
    --chart-bg: rgba(19, 71, 204, 0.1);
    --accent-color: #ff6b6b;
}

/* Preloader Styles - Water Filling Loader */
.preloader {
    position: fixed;
    inset: 0;
    background: radial-gradient(1200px 600px at 10% 10%, rgba(19, 71, 204, 0.08), transparent),
                radial-gradient(900px 500px at 90% 0%, rgba(19, 71, 204, 0.06), transparent),
                rgba(0, 8, 20, 0.92);
    display: grid;
    place-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    width: min(90vw, 420px);
    height: auto;
}

.loader svg { width: 100%; height: 100%; display: block; }

.loader text {
    font-family: Arial, sans-serif;
    font-size: 48px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: middle;
}

.loader-outline {
    fill: none;
    stroke: var(--primary-blue);
    stroke-width: 2.5;
    paint-order: stroke fill;
}

.loader-bg { fill: var(--chart-bg); }

.wave { fill: var(--primary-blue); }
.waves { transform: translateX(0); animation: rise 1.8s ease-in-out infinite alternate; }
.wave.front { opacity: 0.95; animation: waveMove 2.8s linear infinite; }
.wave.back { opacity: 0.55; animation: waveMove 3.6s linear infinite reverse; }

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-160px); }
}

@keyframes rise {
    0% { transform: translateY(8px); }
    100% { transform: translateY(-10px); }
}

@media (max-width: 480px) {
    .loader { width: min(92vw, 360px); }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .waves, .wave.front, .wave.back { animation: none !important; }
    .preloader { transition: none; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Mobile Navigation Styles */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    z-index: 1001;
}

.mobile-nav-toggle:hover {
    color: #2563eb;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: white;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding-top: 80px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        padding: 15px 20px;
        margin: 10px 0;
        width: 80%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .work-btn {
        display: none;
    }

    /* Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }
}

/* Enhanced navbar styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2563eb;
}

.work-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #ffffff; /* White background */
    color: #000000; /* Black text for better contrast */
    text-decoration: none;
    border-radius: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Heavy shadow */
    transition: background 0.3s ease, box-shadow 0.3s ease;
}


.work-btn:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    background: #f1f1f1; /* Slight hover tint */
}

.work-btn-logo {
    height: 20px;
}

/* Basic container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Basic responsive styles */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .container {
        padding: 0 15px;
    }
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    gap: 40px;
    min-height: 500px;
    padding: 60px 0 40px;
}

.hero-text {
    flex: 1;
}

.hero-intro {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-desc {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.action-btn {
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s;
}

.resume-btn {
    background-color: var(--primary-blue);
    color: white;
}

.hire-btn {
    background-color: var(--primary-blue);
    color: white;
}

.action-btn:hover {
    transform: scale(1.05);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-btn:hover {
    transform: scale(1.1);
}


.resume-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
    border-radius: 10px;
    overflow: hidden;
}

.resume-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.resume-preview {
    opacity: 1;
}
/* rest Dashboard */
/* Resume Modal */
.resume-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(14, 23, 51, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.resume-popup.hidden {
    display: none;
}

.resume-popup-content {
    background-color: white;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.resume-popup-content iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 10px;
}

.download-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}



/* KPI Dashboard */
.kpi-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.kpi-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
}

.kpi-card:hover {
    transform: translateY(-10px);
}

.kpi-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--chart-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.kpi-data h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--primary-blue);
}

.kpi-data p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Dashboard Sections */
.dashboard-section {
    background-color: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-blue);
}

.view-options {
    display: flex;
    gap: 15px;
}

.view-btn {
    padding: 8px 15px;
    background-color: var(--bg-light);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Deep shadow */
}


.view-btn.active {
    background-color: var(--primary-blue);
    color: white;
}

/* Chart Containers */
.chart-container {
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
    position: relative;
}

/* Experience Details */
.experience-details {
    margin-top: 30px;
}

.experience-card {
    display: flex;
    gap: 20px;
    background-color: var(--bg-light);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.experience-logo {
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.experience-logo img {
    width: 70%;
    height: auto;
    object-fit: contain;
}

.experience-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.experience-content h4 {
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 5px;
}

.experience-date {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.experience-highlights {
    list-style-position: inside;
    padding-left: 10px;
}

.experience-highlights li {
    margin-bottom: 5px;
    color: var(--text-dark);
}

/* Education Details */
.education-flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.chart-container {
  flex: 2;
  min-width: 400px;
}

.education-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.education-card {
  display: flex;
  align-items: center;
  background: #f9f9f9;
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.education-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 12px;
}

.education-content h3 {
  font-size: 16px;
  margin: 0;
  font-weight: 600;
}

.education-content p {
  font-size: 14px;
  margin: 2px 0 0;
  color: #555;
}

@media (max-width: 768px) {
  .education-flex-container {
    flex-direction: column;
  }
}



/* Skills section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-card {
    background-color: var(--bg-light);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 300px;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.skill-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-blue);
    text-align: center;
}

.skill-level {
    height: 85%;
    position: relative;
}

.view-options {
    display: flex;
    gap: 10px;
}

.view-btn {
    padding: 6px 12px;
    border-radius: 8px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
}

.view-btn.active {
    background-color: var(--primary-blue);
    color: white;
}

.radar-chart-container {
    height: 500px;
    margin-top: 20px;
    position: relative;
}


certificates-container {
    position: relative;
    margin-top: 20px;
    display: flex;
    align-items: center;
}

.certificates-slider {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 10px 5px;
    gap: 20px;
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
    scrollbar-width: none;     /* Hide scrollbar for Firefox */
}

.certificates-slider::-webkit-scrollbar {
    display: none;  /* Hide scrollbar for Chrome, Safari and Opera */
}

.certificate-card {
    min-width: 280px;
    max-width: 280px;
    background-color: var(--bg-light);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 290px;
    flex-shrink: 0;
    position: relative;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.certificate-logo {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.certificate-logo img {
    width: 70%;
    height: auto;
    object-fit: contain;
}

.certificate-issuer {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.2;
}

.certificate-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.3;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.certificate-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.certificate-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    margin-top: auto;
}

.certificate-link:hover {
    text-decoration: underline;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.scroll-btn:hover {
    background-color: #0035a9;
    transform: translateY(-50%) scale(1.05);
}

.scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.scroll-left {
    left: -20px;
}

.scroll-right {
    right: -20px;
}

.certificate-pagination {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.page-indicator {
    font-size: 0.9rem;
    color: var(--text-light);
    background-color: var(--bg-light);
    padding: 4px 10px;
    border-radius: 12px;
}

/* For mobile responsiveness */
@media (max-width: 768px) {
    .certificate-card {
        min-width: 250px;
    }

    .scroll-btn {
        width: 36px;
        height: 36px;
    }

    .scroll-left {
        left: -10px;
    }

    .scroll-right {
        right: -10px;
    }
}

@media (max-width: 480px) {
    .certificate-card {
        min-width: 220px;
    }
}
/* Projects section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.project-card {
    background-color: #fafafa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(19, 71, 204, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-view-btn {
    background-color: white;
    color: var(--primary-blue);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s, background-color 0.3s;
}

.project-view-btn:hover {
    transform: scale(1.05);
    background-color: #f0f0f0;
}

.project-info {
    padding: 20px;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.project-tag {
    background-color: var(--chart-bg);
    color: var(--primary-blue);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-desc {
    color: var(--text-light);
    line-height: 1.5;
}

.view-options {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.view-btn {
    background-color: transparent;
    border: none;
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s;
}

.view-btn:hover {
    color: var(--primary-blue);
}

.view-btn.active {
    background-color: var(--primary-blue);
    color: white;
}

.show-more-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.show-more-btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(19, 71, 204, 0.3);
}

.show-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(19, 71, 204, 0.4);
}

.show-more-btn.hide {
    display: none;
}

/* Animation for projects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Contact section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--bg-light);
    border-radius: 15px;
    padding: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--chart-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.contact-text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-text a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-text a:hover {
    color: var(--primary-blue);
}

.contact-form {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-blue);
    outline: none;
}

.submit-btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #0f3aa5;
}

/* Radar chart container */
.radar-chart-container {
    width: 100%;
    height: 500px;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.dashboard-section {
    animation: fadeIn 0.8s ease forwards;
}

.kpi-card, .certificate-card {
    animation: fadeIn 0.5s ease forwards;
}

.kpi-card:nth-child(2) { animation-delay: 0.1s; }
.kpi-card:nth-child(3) { animation-delay: 0.2s; }
.kpi-card:nth-child(4) { animation-delay: 0.3s; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .certificates-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        flex-direction: column;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }


    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .kpi-container {
        grid-template-columns: 1fr;
    }

    .experience-card, .education-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .experience-highlights {
        text-align: left;
    }
}

/* Mobile nav styles when active */
.nav-links.active {
    display: flex;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--bg-light);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* Fade in for sections when they become visible */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add this CSS code to your style.css file */

:root {
    --primary-blue: #1347cc;
    --jarvis-dark: #0f3596;
    --jarvis-light: #e6eeff;
    --jarvis-border: #ccdaff;
    --jarvis-shadow: rgba(19, 71, 204, 0.2);
    --jarvis-bg: #ffffff;
}

.jarvis-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--jarvis-shadow);
    z-index: 999;
    transition: all 0.3s ease;
}

.jarvis-toggle:hover {
    background-color: var(--jarvis-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--jarvis-shadow);
}

.jarvis-toggle-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--jarvis-bg);
}

.jarvis-toggle-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jarvis-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 550px;
    background-color: var(--jarvis-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--jarvis-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    display: none;
    border: 1px solid var(--jarvis-border);
}

.jarvis-header {
    background-color: var(--primary-blue);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    position: relative;
    gap: 10px;
    flex-wrap: wrap;
}

.jarvis-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    object-fit: cover;
}

.jarvis-header h3 {
    margin: 0;
    font-size: 18px;
    flex-grow: 1;
}

.jarvis-subtitle {
    font-size: 12px;
    opacity: 0.8;
    width: 100%;
    margin-left: 46px;
    margin-top: -5px;
}

#jarvis-close {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    transition: background-color 0.2s;
}

#jarvis-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.jarvis-chat-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.jarvis-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Custom scrollbar for Jarvis messages */
.jarvis-messages::-webkit-scrollbar {
    width: 6px;
}

.jarvis-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.jarvis-messages::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 10px;
}

.jarvis-messages::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.jarvis-message {
    display: flex;
    gap: 10px;
    max-width: 90%;
}

.jarvis-message.user {
    margin-left: auto;
    flex-direction: row-reverse;
}

.jarvis-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--jarvis-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.jarvis-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jarvis-message.user .jarvis-avatar {
    background-color: var(--primary-blue);
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.jarvis-message-content {
    background-color: var(--jarvis-light);
    padding: 12px 15px;
    border-radius: 18px;
    border-top-left-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.jarvis-message.user .jarvis-message-content {
    background-color: var(--primary-blue);
    color: white;
    border-radius: 18px;
    border-top-right-radius: 4px;
}

.jarvis-message-content p {
    margin: 0;
}

.jarvis-message-content a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.jarvis-message.user .jarvis-message-content a {
    color: white;
    text-decoration: underline;
}

.jarvis-input-container {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--jarvis-border);
    background-color: var(--jarvis-bg);
}

#jarvis-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid var(--jarvis-border);
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

#jarvis-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(19, 71, 204, 0.1);
}

#jarvis-send {
    width: 40px;
    height: 40px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

#jarvis-send:hover {
    background-color: var(--jarvis-dark);
    transform: scale(1.05);
}

.loading-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 20px;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    background-color: #888;
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.5s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
}

/* Response formatting styles */
.jarvis-message .highlight {
    font-weight: bold;
    color: var(--primary-blue);
}

.jarvis-message.assistant .highlight {
    color: var(--primary-blue);
}

.jarvis-message.user .highlight {
    color: white;
}

.jarvis-message ul, .jarvis-message ol {
    margin: 5px 0;
    padding-left: 20px;
}

.jarvis-message table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
    font-size: 13px;
}

.jarvis-message th, .jarvis-message td {
    border: 1px solid #ddd;
    padding: 6px;
    text-align: left;
}

.jarvis-message th {
    background-color: rgba(19, 71, 204, 0.1);
}

/* Responsive styles */
@media (max-width: 480px) {
    .jarvis-container {
        width: 100%;
        height: 80vh;
        right: 0;
        bottom: 0;
        border-radius: 15px 15px 0 0;
    }

    .jarvis-toggle {
        right: 20px;
        bottom: 20px;
    }
}

.assistant-btn {
    background-color: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.assistant-btn-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    object-fit: cover;
}

.assistant-btn:hover {
    background-color: var(--jarvis-dark);
}

/* Responsive Business Card Layout */
.profile-section {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.card-container {
    width: 490px;
    height: 280px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease-in-out;
}

.business-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease-in-out;
    cursor: pointer;
}

.business-card.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.card-front {
    transform: rotateY(0deg);
}

.card-back {
    transform: rotateY(180deg);
}

.card-front img,
.card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Hover effect */
.card-container:hover .business-card {
    transform: rotateY(180deg);
}

.card-container:hover .business-card.flipped {
    transform: rotateY(360deg);
}

/* Mobile Layout Control */
.mobile-card {
    display: none;
    margin: 20px 0;
}

.desktop-card {
    display: flex;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-card {
        display: flex;
    }

    .desktop-card {
        display: none;
    }

    .mobile-card .card-container {
        width: 377.3px;
        height: 215.6px;
    }
}

@media (max-width: 480px) {
    .mobile-card .card-container {
        width: 377.3px;
        height: 215.6px;
    }
}

@media screen and (max-width: 768px) {
    .action-buttons {
        display: none;
    }
}

@media (max-width: 768px) {
    #kpi {
        display: none;
    }
}



/* Replace certificate classes with blog classes */
.blog-container {
    position: relative;
    margin-top: 20px;
    display: flex;
    align-items: center;
}

.blog-slider {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 10px 5px;
    gap: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.blog-slider::-webkit-scrollbar {
    display: none;
}

.blog-card {
    min-width: 280px;
    max-width: 280px;
    background-color: var(--bg-light);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 3px 10px rgb(47, 45, 45, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 290px;
    flex-shrink: 0;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.blog-title-header {
    background-color: var(--primary-blue);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-align: center;
    line-height: 1.3;
    margin: 0;
}

.blog-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-align: left;
    line-height: 1.4;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.blog-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    margin-top: auto;
}

.blog-link:hover {
    text-decoration: underline;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .blog-card {
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .blog-card {
        min-width: 220px;
    }
}

        /* Footer Styles */
        footer {
            background: linear-gradient(135deg, #0a1628 0%, #1e3a8a 50%, #1e40af 100%);
            color: white;
            position: relative;
            overflow: hidden;
        }

        footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #60a5fa, #3b82f6, #2563eb, #1d4ed8);
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 40px;
            padding: 60px 0 40px;
        }

        .footer-brand {
            max-width: 350px;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 25px;
        }

        .footer-logo img {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            object-fit: cover;
            border: 2px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }

        .footer-logo img:hover {
            transform: scale(1.05);
            border-color: #60a5fa;
            box-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
        }

        .footer-logo h3 {
            font-size: 1.4rem;
            font-weight: 700;
            color: white;
        }

        .footer-description {
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.6;
            margin-bottom: 25px;
            font-size: 0.95rem;
        }

        .social-links-footer {
            display: flex;
            gap: 15px;
        }

        .social-links-footer a {
            width: 45px;
            height: 45px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .social-links-footer a:hover {
            background: #60a5fa;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(96, 165, 250, 0.4);
            border-color: #60a5fa;
        }

        .footer-section h4 {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 25px;
            color: white;
            position: relative;
        }

        .footer-section h4::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 30px;
            height: 2px;
            background: #60a5fa;
            border-radius: 1px;
        }

        .footer-links {
            list-style: none;
        }

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

        .footer-links a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .footer-links a:hover {
            color: #60a5fa;
            transform: translateX(5px);
        }

        .footer-links a i {
            font-size: 0.8rem;
            opacity: 0.7;
        }

        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding: 25px 0;
            text-align: center;
        }

        .footer-bottom-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
        }

        .copyright {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
        }

        .footer-bottom-links {
            display: flex;
            gap: 25px;
        }

        .footer-bottom-links a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            font-size: 0.85rem;
            transition: color 0.3s ease;
        }

        .footer-bottom-links a:hover {
            color: #60a5fa;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .footer-content {
                grid-template-columns: 1fr;
                gap: 30px;
                padding: 40px 0 30px;
            }

            .footer-brand {
                max-width: 100%;
            }

            .footer-bottom-content {
                flex-direction: column;
                text-align: center;
            }

            .footer-bottom-links {
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .footer-container {
                padding: 0 15px;
            }

            .social-links-footer {
                justify-content: center;
            }

            .footer-logo {
                justify-content: center;
                text-align: center;
            }
        }


.hidden {
  display: none;
}

@media (max-width: 768px) {
  .contact-info {
    display: none;
  }
}

@media (max-width: 768px) {
  .education-legend {
    display: none;
  }
}
