/* ==================== CSS Reset and Base Styles ==================== */
:root {
    --primary-color: #17181A;
    --primary-dark: #0C0D0E;
    --secondary-color: #D2AF3A;
    --accent-color: #2EC4B6;
    --text-color: #333;
    --light-text: #f8f8f8;
    --bg-color: #f9f9f9;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* ==================== Utility Classes ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================== Header & Navigation ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    transition: var(--transition);
}

.logo-img:hover {
    transform: rotate(15deg);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
    font-size: 1rem;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--primary-color);
}

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

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

/* ==================== Mobile Menu ==================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.bar {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==================== Resume Hero Section ==================== */
.resume-hero {
    padding: 90px 0 30px;
    background-color: #E5E5E8;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 15px;
}

#resume-heading {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--primary-dark);
}

#resume-heading,
#resume-heading .highlight {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.highlight {
    color: var(--secondary-color);
}

/* ==================== Experience Timeline ==================== */
.experience-timeline {
    padding: 30px 0 90px;
    background-color: #E5E5E8;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin: 0;
}

.center-header {
    justify-content: center;
    text-align: center;
}

.download-resume {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-resume:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.download-resume svg {
    width: 18px;
    height: 18px;
}

.professional-timeline {
    position: relative;
    padding-left: 120px;
}

.professional-timeline::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 15px;
    bottom: 15px;
    width: 2px;
    background: var(--secondary-color);
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

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

.timeline-date {
    position: absolute;
    left: -200px;
    width: 100px;
    text-align: right;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.1rem;
    padding-top: 5px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -68px;
    top: 15px;
    width: 12px;
    height: 12px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    z-index: 2;
    border: 3px solid white;
}

.experience-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.experience-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 20px;
}

.company-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.experience-title {
    flex: 1;
}

.experience-title h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin: 0 0 5px 0;
    font-weight: 700;
    line-height: 1.3;
}

.company-name {
    color: var(--text-color);
    opacity: 0.9;
    font-size: 1rem;
    margin: 0;
    font-style: normal;
}

.responsibilities {
    list-style-type: none;
    margin: 0 0 15px 0;
    padding: 0;
}

.responsibilities li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.6;
}

.responsibilities li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

.more-responsibilities {
    display: none;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px dashed rgba(0,0,0,0.1);
    animation: fadeIn 0.4s ease;
}

.timeline-item.expanded .more-responsibilities {
    display: block;
}

.show-more-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 5px 0 0 0;
}

.show-more-btn:hover {
    background-color: rgba(210, 175, 58, 0.1);
}

.toggle-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.show-more-btn.active .toggle-icon {
    transform: rotate(180deg);
}

/* ==================== Education Section ==================== */
.education-section {
    padding: 40px 0;
    background-color: lightgrey;
}

.education-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.education-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.university-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.education-content h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin: 0 0 10px 0;
    font-weight: 600;
    line-height: 1.3;
}

.university-name {
    color: var(--text-color);
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    display: block;
}

.education-period {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* ==================== Resume Testimonials ==================== */
.resume-testimonials{
  padding: 56px 0;
  background-color: #E5E5E8;
  color: #fff;
}

.resume-testimonials .section-header h2{
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-color);
}

.resume-testimonials-header h2{
    text-align: center;
}

.resume-testimonials .testimonial-cards{
  display: grid;
  grid-template-columns: 1fr; 
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 700px){
  .resume-testimonials .testimonial-cards{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
}

@media (min-width: 1024px){
  .resume-testimonials .testimonial-cards{ gap: 28px; }
}

.resume-testimonials .testimonial-card{
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 20px;           
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  opacity: 0;
  transform: translateY(16px);
  animation: resumeCardIn .55s ease forwards;
}
.resume-testimonials .testimonial-card:nth-child(2){ animation-delay:.08s; }
.resume-testimonials .testimonial-card:nth-child(3){ animation-delay:.16s; }
.resume-testimonials .testimonial-card:nth-child(4){ animation-delay:.24s; }

@media (min-width: 700px){
  .resume-testimonials .testimonial-card{ padding: 26px; }
}
@media (min-width: 1024px){
  .resume-testimonials .testimonial-card{ padding: 28px; }
}

@media (hover:hover){
  .resume-testimonials .testimonial-card:hover{
    transform: translateY(-4px);
    background: rgba(255,255,255,0.14);
    box-shadow: 0 18px 50px rgba(0,0,0,0.22);
  }
}

.resume-testimonials .testimonial-meta{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.resume-testimonials .testimonial-author{ display: flex; align-items: center; gap: 12px; }
.resume-testimonials .author-avatar{
  width: 44px; height: 44px; 
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  display: grid; place-items: center; flex: 0 0 44px;
}
.resume-testimonials .author-avatar svg{ width: 22px; height: 22px; color: var(--text-color); opacity: .9; }

@media (min-width: 700px){
  .resume-testimonials .author-avatar{ width: 52px; height: 52px; flex-basis: 52px; }
  .resume-testimonials .author-avatar svg{ width: 24px; height: 24px; }
}

.resume-testimonials .author-info h4{ margin: 0 0 4px; font-size: 1rem; color: var(--text-color); font-weight: 700; }
.resume-testimonials .author-info p{ margin: 0; font-size: .9rem; color: var(--text-color); opacity: .9; }

.resume-testimonials .testimonial-logo{
  padding: 5px 8px; border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.resume-testimonials .testimonial-logo img{
  display: block; height: 22px; width: auto; 
  opacity: 1 !important; filter: none !important; mix-blend-mode: normal !important;
}

@media (min-width: 700px){
  .resume-testimonials .testimonial-logo img{ height: 26px; }
}
@media (min-width: 1024px){
  .resume-testimonials .testimonial-logo img{ height: 28px; }
}

.resume-testimonials .testimonial-content{ position: relative; padding-top: 4px; }
.resume-testimonials .quote-icon{
  position: absolute; top: -6px; left: -6px; width: 30px; height: 30px; opacity: .25; color: var(--text-color);
}

@media (min-width: 700px){
  .resume-testimonials .quote-icon{ width: 36px; height: 36px; }
}
.resume-testimonials .testimonial-content p{
  margin: 0; font-size: 1rem; line-height: 1.65; color: var(--text-color);;  
}
@media (min-width: 700px){
  .resume-testimonials .testimonial-content p{ font-size: 1.05rem; line-height: 1.7; }
}

@media (prefers-reduced-motion: reduce){
  .resume-testimonials .testimonial-card{ animation: none; opacity: 1; transform: none; }
}

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


/* ==================== Footer Styles ==================== */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0 30px;
    position: relative;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-heading {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    color: white;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-style: normal;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.05rem;
}

.contact-link svg {
    width: 20px;
    height: 20px;
    color: var(--secondary-color);
}

.contact-link:hover {
    color: white;
    transform: translateX(5px);
}

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

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.05rem;
}

.social-link svg {
    width: 20px;
    height: 20px;
    color: var(--secondary-color);
}

.social-link:hover {
    color: white;
    transform: translateX(5px);
}

/* -------------------- Back-to-Top Button -------------------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;

    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1FB1A9 100%);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    visibility: hidden;
    opacity: 0;
    transform: translateY(20px);

    transition:
      visibility 0s linear 0.3s, 
      opacity 0.3s ease,
      transform 0.3s ease;
}

.back-to-top.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.back-to-top:hover svg {
    transform: scale(1.1);
}

.back-to-top:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: nowrap;
    margin-bottom: 0;
}

.copyright {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    text-align: center;
    flex: 1;
    min-width: 0;
}


/* ==================== Mobile Responsiveness ==================== */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        padding: 20px 0 0;
        flex-direction: row;
        gap: 15px;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        margin-left: 15px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .footer-bottom {
        flex-wrap: nowrap; 
        justify-content: space-between;
    }
    
    .copyright {
        flex-basis: auto; 
        margin-bottom: 0;
        text-align: center; 
        white-space: nowrap; 
        overflow: hidden;
        text-overflow: ellipsis;
        padding-right: 10px;
        font-size: 0.83rem;
    }
    
    .back-to-top {
        margin-left: 10px;
        flex-shrink: 0; 
    }
}

/* ==================== Responsive Design ==================== */
@media (max-width: 992px) {
    .professional-timeline {
        padding-left: 100px;
    }
    
    .professional-timeline::before {
        left: 50px;
    }
    
    .timeline-date {
        left: -100px;
        width: 90px;
    }
    
    .timeline-item::before {
        left: 46px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 40px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        transform: translateY(0);
    }
    
    .resume-hero {
        padding: 130px 0 40px;
    }
    
    #resume-heading {
        font-size: 2.2rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .professional-timeline {
        padding-left: 0;
    }
    
    .professional-timeline::before {
        display: none;
    }
    
    .timeline-date {
        position: static;
        width: 100%;
        text-align: left;
        margin-bottom: 10px;
        padding-left: 0;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .experience-card {
        padding: 25px;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .company-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        height: auto;
    }
}

@media (max-width: 480px) {
    .resume-hero {
        margin-top: 10px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    #resume-heading {
        font-size: 1.8rem;
    }
    
    .timeline-item {
        padding: 20px;
    }
    
    .responsibilities li {
        font-size: 0.95rem;
    }
    
    .education-card {
        padding: 30px 20px;
    }
    
    .university-logo {
        width: 80px;
        height: 80px;
    }
    
    .footer-bottom {
        flex-wrap: nowrap;
    }
    
    .back-to-top {
        width: 44px;
        height: 44px;
        margin-left: 15px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

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