* {
    box-sizing: border-box;
  }
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Dark Glassmorphism Variables */
:root {
    --glass-bg: rgba(30, 34, 45, 0.35);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0,0,0,0.45);
    --glass-blur: blur(18px);
    --accent-color: #4f8cff;
    --accent-gradient: linear-gradient(135deg, #4f8cff 0%, #a084ee 100%);
    --text-color: #e6e6e6;
    --heading-color: #fff;
    --card-bg: rgba(40, 44, 60, 0.55);
}

body {
    background: linear-gradient(120deg, #181c24 0%, #23283b 100%);
    min-height: 100vh;
    color: var(--text-color);
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

.glass, .navbar, .service-card, .project-card, .cert-card, .edu-card, .timeline-item {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(.4,2,.3,1);
}

.navbar {
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

.nav-link {
    position: relative;
    color: var(--text-color);
    transition: color 0.3s ease;
}

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

.nav-link::after {
    content: "";
    width: 0;
    height: 2px;
    background: var(--accent-color);
    position: absolute;
    left: 0;
    bottom: 0;
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
}

a {
    color: var(--accent-color);
    transition: color 0.2s;
}

a:hover {
    color: #a084ee;
}

/* Section glass backgrounds */
.timeline-area, .education-area, .services-area {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 1rem;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

/* Start - Top section */
.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Image zoom effect */
.hover-zoom {
    transition: transform 0.5s ease;
}

.hover-zoom:hover {
    transform: scale(1.03);
}

/* Bounce badge */
.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -10px);
    }
}
/* End - Top section */

/* Start - Work Experience */

.timeline-area {
    background: #f8f9fa;
}

.timeline_rows::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #0d6efd, #6c757d);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: rgba(0, 123, 255, 0.05);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    padding-left: 36px;
}

.timeline-date {
    font-size: 0.95rem;
    color: var(--accent-color);
    font-weight: 600;
}

.timeline-title {
    margin-bottom: 10px;
    color: #212529;
}

.timeline-description p {
    margin-bottom: 8px;
    color: #6c757d;
}

.education-area {
    background: #f8f9fa;
}

.timeline_rows::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #0d6efd, #6c757d);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding: 1rem;
    padding-left: 40px;
    /* margin-bottom: 40px; */
    margin: 1.5rem;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: rgba(13, 110, 253, 0.05);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    padding-left: 36px;
}

.timeline-date {
    font-size: 0.95rem;
    color: var(--accent-color);
    font-weight: 600;
}

.timeline-title {
    margin-bottom: 10px;
    color: #212529;
}

.timeline-description p {
    margin-bottom: 8px;
    color: #6c757d;
}

/* End - Work Experience */

.services-area {
    background: #f8f9fa;
}

.service-card {
    transition: all 0.3s ease;
    background: #ffffff;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.15);
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
}

.service-icon {
    width: 100%;
    /* height: 60px; */
    object-fit: contain;
}

.project-card {
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.1);
}

.project-image {
    transition: transform 0.4s ease;
}

.project-card:hover .project-image {
    transform: scale(1.03);
}

.progress-bar {
    transition: width 1s ease-in-out;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-bar.bg-primary {
    background: linear-gradient(90deg, #4f8cff 0%, #a084ee 100%);
    box-shadow: 0 0 8px #4f8cff;
    color: #fff;
}

/*certification start*/
.cert-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.cert-img-container {
    overflow: hidden;
    position: relative;
}

.cert-img {
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
}

.cert-card:hover .cert-img {
    transform: scale(1.1);
}
/* .certification { */

/* Vertical line */
.edu-line {
    width: 4px;
    height: 100%;
}

/* Dot */
.edu-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    top: 10px;
    z-index: 5;
    border: 3px solid #fff;
    box-shadow: 0 0 0 4px rgba(13,110,253,0.2);
}

/* Card */
.edu-card {
    background: #f8f9fa;
    padding: 20px;
    width: 48%;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.4s ease;
    clear: both;
}

.edu-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

.edu-card.float-end {
    float: right;
}

/* Responsive */
@media (max-width: 768px) {
    .edu-card, .edu-card.float-end {
        width: 100%;
        float: none !important;
    }
    .edu-dot {
        left: 8px;
        transform: none;
    }
    .edu-line {
        left: 8px;
        transform: none;
    }
}

/* Animated Highlight Banner */
.timeline-highlight {
    background: linear-gradient(90deg, #4f8cff 0%, #a084ee 100%);
    color: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 8px 32px 0 rgba(79,140,255,0.25);
    padding: 2rem 2.5rem;
    margin: 2rem auto;
    max-width: 600px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    animation: fadeInDown 1s;
}
.timeline-highlight::after {
    content: "💼";
    position: absolute;
    right: 2rem;
    top: 1.5rem;
    font-size: 2.5rem;
    opacity: 0.15;
    pointer-events: none;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px);}
    to { opacity: 1; transform: translateY(0);}
}

/* Fade-in utility for cards */
.animated-fadein {
    opacity: 0;
    transform: translateY(40px);
    animation: cardFadeIn 0.8s forwards;
}
@keyframes cardFadeIn {
    to { opacity: 1; transform: none;}
}

/* Card hover effect utility */
.animated-card-hover:hover {
    box-shadow: 0 12px 36px 0 rgba(79,140,255,0.18);
    transform: scale(1.025) translateY(-2px);
    transition: all 0.3s cubic-bezier(.4,2,.3,1);
    border: 1.5px solid var(--accent-color);
}
