:root {
    --primary-color: #465a6d;
    --primary-hover: #344352;
    --text-dark: #333;
    --text-medium: #555;
    --text-light: #888;
    --bg-white: #fffffff2;
    --bg-card: #FFF3E8;      
    --bg-navbar: rgba(255, 247, 240, 0.97); 
    --bg-card-hover: #F5EBE1; 
    --shadow: rgba(0, 0, 0, 0.08); 
    --shadow-hover: rgba(0, 0, 0, 0.12); 
    --bg-color-main: #FFF7F0;
    --text-color: #262523;
    --max-width: 1200px;
    --card-width: 700px;
    --timeline-width: 1000px;
    --spacing-xs: 8px;
    --spacing-sm: 15px;
    --spacing-md: 20px;
    --spacing-lg: 25px;
    --spacing-xl: 80px;
    --scrollbar-width: 6px; 
    --scrollbar-track: transparent; 
    --scrollbar-thumb: rgba(38, 37, 35, 0.2); 
    --scrollbar-thumb-hover: rgba(38, 37, 35, 0.3); 
}

@font-face {
    font-family: 'HelveticaNowTextLight';
    src: url('./fonts/HelveticaNowText-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    font-family: 'HelveticaNowTextLight', sans-serif;
    background-color: var(--bg-color-main);
    color: var(--text-color);
    overflow-y: overlay; 
}
/* Navigation */
.navbar {
    background-color: var(--bg-navbar);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1rem;
    box-shadow: 0 2px 12px var(--shadow);
    backdrop-filter: blur(10px);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo styling */
.navbar-logo {
    color: var(--text-color);
    font-size: 1.5rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
    margin-right: auto;
}

/* Navigation menu */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem; 
}

.nav-menu li {
    margin: 0; 
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Navigation Hover Effects */
.nav-menu:hover li a {
    opacity: 0.3;
    filter: grayscale(100%);
}

.nav-menu li a:hover {
    opacity: 1;
    filter: none;
    color: #000;
}

.nav-menu a.active {
    color: #000;
    font-weight: 500;
}

/* Section Styles */
.section {
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    filter: blur(5px);
    visibility: hidden;
}

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

.section h2,
.section p {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    transition-delay: 0.2s;
}

.section.fade-in h2,
.section.fade-in p {
    opacity: 1;
    transform: translateY(0);
}

.section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-medium);
    max-width: 800px;
}

/* Resume Timeline */
#experience {
    position: relative;
}

#experience::before {
    display: none;
}

.resume-timeline {
    position: relative;
    display: grid;
    grid-template-columns: 150px 700px;
    gap: 20px;
    width: 1000px;
    margin: 0 auto;
}

/* Job Cards */
.job-card {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: 8px;
    width: 700px;
    margin: 20px 0;
    box-shadow: 0 4px 8px var(--shadow);
    transition: all 0.3s ease;
}

.job-duration {
    font-size: 14px;
    color: var(--primary-color);
    text-align: right;
    padding-top: var(--spacing-lg);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px; 
}

.job-header h3 {
    margin: 0;
    padding: 0;
    font-size: 16px;
}

.job-subheader {
    font-size: 13px;
    color: rgba(38, 37, 35, 0.7); 
    font-style: italic;
    display: block;
    padding: 0; 
    margin: 0 0 15px 0; 
}

/* Job card content alignment */
.job-card p {
    margin: 0;
    padding: 0;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Skills */
.skills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0; 
}

.skill {
    background-color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
    transition: background-color 0.3s ease;
}

/* Hover Effects */
.job-card:hover {
    opacity: 1 !important;
}

.job-card:hover .skill {
    background-color: var(--primary-hover);
}

.job-card:hover h3 {
    color: var(--primary-hover);
}

/* Job Cards Hover Effects */
.resume-timeline:hover .job-card {
    opacity: 0.4;
    transition: all 0.3s ease;
}

.resume-timeline .job-card:hover {
    background-color: var(--bg-card-hover);
    box-shadow: 0 8px 16px var(--shadow-hover);
    transform: translateY(-2px);
}

/* Skill tag hover effects */
.job-card:hover .skill {
    background-color: var(--primary-hover);
}

/* Title hover effect */
.job-card:hover h3 {
    color: var(--primary-hover);
}

/* Link hover effect */
.job-card:hover a {
    color: var(--primary-hover);
}

/* Video container styling */
.video-container {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.video-container:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Progress bar styling */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(
        to right,
        var(--primary-color),
        #00a6ff
    );
    z-index: 1001; /* Above navbar */
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(0, 115, 230, 0.5);
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(5px);
    opacity: 0.7;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: var(--scrollbar-width);
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 5px;
    border: 2px solid var(--scrollbar-track);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* Optional: Hide scrollbar when not scrolling */
::-webkit-scrollbar-thumb {
    transition: background 0.2s ease;
}

html {
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

html::-webkit-scrollbar {
    display: none; 
}

/* Custom Overlay Scrollbar */
body::after {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: var(--scrollbar-width);
    height: 100%;
    background: var(--scrollbar-track);
    z-index: 9999;
}

/* Scrollbar Thumb */
body::-webkit-scrollbar {
    width: var(--scrollbar-width);
}

body::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

body::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
    transition: background 0.2s ease;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Firefox */
body {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* Ensure smooth scrolling */
body {
    overflow-y: overlay;
    scroll-behavior: smooth;
}

/* Hide scrollbar for all browsers while keeping scroll functionality */
html, body {
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

/* Chrome, Safari and Opera */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

/* Certifications Section with connecting lines */
.certifications-container {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    display: grid;
    gap: 40px; 
    position: relative; 
}

/* Vertical connecting line */
.certifications-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--primary-color) 10%,
        var(--primary-color) 90%,
        transparent
    );
    opacity: 0;
    animation: growLine 1.5s ease-out forwards;
}

/* Certification cards with connecting dots */
.certification-card {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative; 
    margin-left: 60px; 
}

/* Dots on the line */
.certification-card::before {
    content: '';
    position: absolute;
    left: -60px;
    top: 50%;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

/* Horizontal connecting lines */
.certification-card::after {
    content: '';
    position: absolute;
    left: -48px; 
    top: 50%;
    width: 48px;
    height: 2px;
    background-color: var(--primary-color);
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

/* Hover effects */
.certification-card:hover::before {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 0 10px rgba(0, 115, 230, 0.3);
}

.certification-card:hover::after {
    background-color: var(--primary-hover);
}

/* Animation for the vertical line */
@keyframes growLine {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: 100%;
        opacity: 1;
    }
}

.certification-card {
    opacity: 0;
    transform: translateX(30px);
    animation: slideIn 0.8s ease-out forwards;
}

.certification-card:nth-child(1) {
    animation-delay: 0.3s;
}

.certification-card:nth-child(2) {
    animation-delay: 0.6s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.certification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.certification-header h3 {
    margin: 0;
    padding: 0;
    font-size: 16px;
    color: var(--text-color);
}

.certification-subheader {
    font-size: 13px;
    color: rgba(38, 37, 35, 0.7);
    font-style: italic;
    display: block;
    margin: 0 0 15px 0;
}

.certification-card p {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
}

.certification-card a {
    color: var(--text-color);
    text-decoration: none;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
}

body.modal-open > *:not(.modal-overlay) {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.modal-content {
    background-color: #FFF3E8;
    color: var(--text-color);
    padding: 2.5rem;
    border-radius: 8px;
    position: relative;
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: modalOpen 0.3s ease-out;
    transform-origin: center;
    border: 1px solid var(--primary-color);
    filter: none !important;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    border: none;
    background: none;
    padding: 5px;
    transition: opacity 0.2s;
}

.close-button:hover {
    opacity: 0.7;
}

/* Animation keyframes */
@keyframes modalOpen {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* When modal is open */
.modal-overlay.active {
    display: flex;
}

/* Add this to your CSS */
.contact-nav-button {
    background-color: #333; 
    color: #FFF3E8 !important; 
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid #333; 
}

.contact-nav-button:hover {
    background-color: #555555; 
    border-color: #555555;
    color: #FFF3E8 !important;
    transform: translateY(-2px); 
    box-shadow: 0 2px 8px rgba(70, 90, 109, 0.4); 
}

.modal-content a {
    color: #465A6D;
    text-decoration: none;
    transition: color 0.3s ease;
}

.modal-content a:hover {
    color: #576B7E;
    text-decoration: underline;
}

/* Projects Section */
#projects {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: row;
}

#projects:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-hover);
}

.projects-container {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    display: grid;
    gap: 40px; 
}

.project-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: row; 
    margin-bottom: 20px;
    align-items: center; 
    min-width: 400px; 
    min-height: 150px; 
    padding: 20px; 
}

.project-image {
    width: 450px; 
    height: 250px;
    object-fit: cover; 
    margin-right: 15px;
    border-radius: 8px 0 0 8px; 
}

.project-content {
    padding: 15px; 
    flex-grow: 1; 
}

.project-title {
    font-size: 20px;
    margin: 0 0 15px 0;
    color: var(--text-color);
}

.project-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--primary-hover);
}

.projects-container:hover .project-card {
    opacity: 0.4;
    transition: all 0.3s ease;
}

.project-card:hover {
    background-color: var(--bg-card-hover);
    box-shadow: 0 8px 16px var(--shadow-hover);
    transform: translateY(-2px);
}

.footer {
    background-color: #333; 
    padding: 20px 0;
    text-align: center;
    color: #fff;
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-icons a {
    color: #fff;
    font-size: 24px;
    transition: color 0.3s ease;
}

.footer-icons a:hover {
    color: #ddd; 
}

.portfolio {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow);
    transition: all 0.3s ease;
    margin: 20px 0;
}

.portfolio-item {
    margin-bottom: 15px;
    padding: 15px;
    background-color: var(--bg-card-hover);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    background-color: var(--bg-card);
    box-shadow: 0 4px 8px var(--shadow-hover);
    transform: translateY(-2px);
}

#about h1 {
    font-size: 3rem; 
    font-weight: bold; 
    margin-bottom: 20px; 
    color: var(--text-color); 
    display: inline-block;
    position: relative; 
}

.cursor {
    display: inline-block;
    width: 1px;
    background-color: var(--text-color);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to {
        background-color: transparent;
    }
    50% {
        background-color: var(--text-color);
    }
}

