/* Animation */
@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes fade-bottom {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes fade-left {
  0% {
    transform: translateX(-10px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fade-right {
  0% {
    transform: translateX(20px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Header animation */
@keyframes fade-up {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

header .navbar.animate {
    animation: fade-up 0.5s ease-in;
}

/* ToolTip */

.tooltip {
    line-height: 1rem;
    border-radius: .5rem !important;
}
.tooltip-inner {
    line-height: 1rem;
}
.tooltip .tooltip-arrow { 
    visibility: hidden !important;
}

/* hero */

#hero {
    min-height: 10vh;
    line-height: 2rem;
    max-width: 100%;
}
#hero .content.animate {
    animation: fade-left 1s ease-out;
}

#hero .hero-bottom-svg {
    opacity: 0.5;
    position: absolute;
    bottom: -50px;
    left: -150px;
}

#hero .subtitle {
    font-size: clamp(14px,5vw,16px);
    opacity: 0.6;
}

#hero h1 {
    font-size: clamp(40px, 8vw, 80px);
    color: var(--primary-color) !important;
}

#hero h2 {
    font-size: clamp(40px, 8vw, 60px);
    opacity: 0.5;
}

#hero p {
    margin: 20px 0px 0px;
    max-width: 640px;
    opacity: 0.8;
}

#hero .image img {
    box-shadow:0px 8px 56px rgba(15, 80, 100, 0.16);
    padding: 0;
    border: 3px solid var(--secondary-color);
    border-radius: 1rem;
}

#hero .image.animate img {
    animation: fade-in 1s ease-out;
    transition: box-shadow 0.3s;
}

#hero .image img:hover {
    cursor: pointer;
}

#hero .image.animate img:hover {
    box-shadow: 0 0 11px rgb(15 80 100 / 20%);
    filter: contrast(1.2);
    cursor: pointer;
}

#hero a.btn.social-icon {
    color: var(--primary-color) !important;
    line-height: 0%;
    border-radius: 50%;
    margin-top: 50px;
    padding: 0.7rem;
    border: 1px solid var(--primary-color);
    transition: none;
}

#hero a.btn.social-icon img {
    width: 1em;
}

#hero a.btn.social-icon:hover {
    opacity: 0.8;
}

#hero a.btn {
    margin-top: 50px;
    padding: 0.7rem 1.75rem;
    border: 1px solid var(--primary-color);
    color: var(--text-color) !important;
    border-radius: .75rem;
    transition: none;
}

#hero a.btn:focus {
    box-shadow: none;
}

#hero a.btn:hover {
    background-color: var(--secondary-color) !important;
    color: var(--text-color) !important;
    opacity: 0.9;
}

#hero a.btn.social-icon:hover {
    background-color: var(--background-color) !important;
    opacity: 0.7;
}

#hero .hero-content > a {
    display: inline-block;
    text-decoration: none;
    color: var(--text-link-color) !important;
}

#hero .hero-content > a::after {
    content: "";
    display: block;
    width: 0px;
    height: 2px;
    bottom: 0.37em;
    background-color: var(--primary-color);
    transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1);
    opacity: 0.5;
}

#hero .hero-content > a:hover::after, #hero .hero-content > a:focus::after, #hero .hero-content > a:active::after {
    width: 100%;
}



/* about me */
#about h3 {
    color: var(--text-secondary-color) !important;
}

/* about me img disabled! already have a hero img*/
/* #about .image img {
    box-shadow: 0px 8px 56px rgba(15, 80, 100, 0.16);
    transition: box-shadow 0.3s;
    padding: 0;
    border: 0;
}

#about .image img:hover {
    box-shadow: 0 0 11px rgb(15 80 100 / 20%);
} */

#about ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    margin: 30px 0px 0px;
    list-style: none;
    justify-content: center;
}


#about ul li {
    position: relative;
    margin: 0;
    padding: 8px 20px 8px 35px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;  /* Added bold font */
    transition: all 0.3s ease;
    white-space: nowrap;
}

#about ul li:hover {
    border-color: var(--text-secondary-color);
    background-color: var(--secondary-color);
    color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 80, 100, 0.2);
}


/* Linux Terminal-Inspired About Content */
#about .content {
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
    font-weight: 500;
    opacity: 0.9 !important;
    line-height: 1.8rem !important;
    background-color: var(--secondary-color) !important;
    padding: 20px;
    border-radius: .75rem;
    box-shadow: 0px 8px 56px rgb(15 80 100 / 16%);
    border: 2px solid var(--text-secondary-color) !important;
    position: relative;
    overflow: hidden;
    transition: box-shadow .2s linear, border .2s linear;
}

/* Hover effect to match other sections */
#about .content:hover {
    box-shadow: 0 4px 11px rgb(15 80 100 / 16%);
    border: 2px solid var(--primary-color) !important;
}

/* Dark mode support - keeps the same style as other sections */
@media (prefers-color-scheme: dark) {
    #about .content {
        background-color: var(--secondary-color) !important;
        border-color: var(--text-secondary-color) !important;
    }
}

/* Terminal prompt styling */
#about .content p {
    margin: 0;
    padding: 8px 0;
    position: relative;
}

/* Style the $ commands differently */
#about .content p:has(> code:first-child) {
    color: var(--primary-color);
    font-weight: 600;
}

/* Command output styling */
#about .content p:not(:has(> code:first-child)) {
    padding-left: 20px;
    opacity: 0.85;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Blinking cursor after last line */
#about .content::after {
    content: "█";
    animation: terminal-blink 1s infinite;
    color: var(--primary-color);
    font-weight: normal;
    opacity: 0.8;
}

@keyframes terminal-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Terminal window decoration (optional - subtle approach) */
#about .content::before {
    content: "● ● ●";
    position: absolute;
    top: 10px;
    left: 15px;
    color: var(--text-secondary-color);
    font-size: 0.8rem;
    letter-spacing: 5px;
    opacity: 0.3;
}

/* Add subtle typing animation on scroll (optional) */
#about .content.animate p {
    overflow: hidden;
    white-space: normal;
    animation: typing 0.5s steps(40, end) forwards;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Code/command highlighting */
#about .content code {
    background-color: transparent;
    color: var(--primary-color);
    padding: 0;
    font-size: 1em;
    font-weight: 600;
}

/* Links in terminal style */
#about .content a {
    color: #0087ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

#about .content a:hover {
    background-color: #0087ff;
    color: white;
    text-decoration: none;
}

/* Experience */

/* Modern Enhanced Experience Section */

#experience h3 {
    color: var(--text-secondary-color) !important;
}

#experience * {
    background-color: transparent !important;
}

/* Main container with hoverable frame matching other sections */
#experience .experience-container {
    background-color: var(--secondary-color) !important;
    border-radius: .75rem;
    box-shadow: 0px 8px 56px rgb(15 80 100 / 16%);
    border: 2px solid var(--text-secondary-color) !important;
    overflow: hidden;
    transition: box-shadow .2s linear, border .2s linear;
    display: inline-block; /* This makes it shrink to content */
    min-width: 100%; /* Ensures it's at least full width on small screens */
}

@media (min-width: 768px) {
    #experience .experience-container {
        min-width: auto; /* On larger screens, let it shrink to content */
    }
}

/* Center the inline-block container */
#experience .row > div {
    text-align: center;
}

#experience .experience-container {
    text-align: left; /* Reset text alignment inside */
}

/* Hover effect matching about me and education */
#experience .experience-container:hover {
    box-shadow: 0 4px 11px rgb(15 80 100 / 16%);
    border: 2px solid var(--primary-color) !important;
}

/* Modern tab navigation */
#experience .nav-tabs {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0 1rem;
    background-color: rgba(0, 0, 0, 0.02) !important;
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    white-space: nowrap; /* Prevent text wrapping */
}

/* Ensure tabs stay horizontal */
#experience .nav-pills {
    flex-wrap: nowrap !important;
    justify-content: center; /* Center tabs if there's extra space */
}

#experience .nav-item {
    flex-shrink: 0;
}

#experience .nav-item .nav-link {
    color: var(--text-color) !important;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 1rem 1.5rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    opacity: 0.7;
}

/* Hover state with subtle animation */
#experience .nav-item .nav-link:hover {
    opacity: 1;
    background-color: rgba(var(--primary-color-rgb), 0.05) !important;
}

/* Active tab with modern indicator */
#experience .nav-item .nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 3px solid var(--primary-color);
    opacity: 1;
    font-weight: 600;
}

/* Add subtle active background */
#experience .nav-item .nav-link.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(var(--primary-color-rgb), 0.1) 0%, 
        transparent 100%);
    z-index: -1;
}

/* Content area styling */
#experience .tab-content {
    padding: 2rem;
    position: relative;
}

/* Add fade-in animation for tab switches */
#experience .tab-pane {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced typography */

/* Center the header section */
#experience .tab-pane > div:first-child {
    text-align: center;
    margin-bottom: 1.5rem;
}

#experience .tab-pane h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

#experience .tab-pane small {
    opacity: 0.8;
    font-style: italic;
    display: inline-block;
    color: var(--text-secondary-color);
}

/* Keep content left-aligned */
#experience .tab-pane > p,
#experience .tab-pane > ul,
#experience .tab-pane > div:not(:first-child) {
    text-align: left;
}

/* Modern list styling */
#experience .experience-container .tab-content .tab-pane ul {
    overflow: hidden;
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

#experience .experience-container .tab-content .tab-pane ul li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 30px;
    line-height: 1.6;
    opacity: 0.85;
    transition: all 0.3s ease;
}

/* Enhanced bullet points with animation */
#experience .experience-container .tab-content .tab-pane ul li::before {
    content: "▹";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1.4;
    transition: transform 0.3s ease;
}

#experience .experience-container .tab-content .tab-pane ul li:hover {
    opacity: 1;
    padding-left: 35px;
}

#experience .experience-container .tab-content .tab-pane ul li:hover::before {
    transform: translateX(5px);
}

/* Modern link styling */
#experience a {
    opacity: 0.9;
    display: inline-block;
    text-decoration: none;
    color: var(--primary-color) !important;
    position: relative;
    font-weight: 500;
    transition: all 0.3s ease;
}

#experience a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    opacity: 0.7;
}

#experience a:hover::after {
    width: 100%;
}

/* Modern button styling */
#experience .experience-container .tab-content .tab-pane .featuredLink a.btn {
    border: 2px solid var(--primary-color);
    background-color: transparent !important;
    color: var(--primary-color) !important;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#experience .experience-container .tab-content .tab-pane .featuredLink a.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

#experience .experience-container .tab-content .tab-pane .featuredLink a.btn:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

#experience .experience-container .tab-content .tab-pane .featuredLink a.btn:hover::before {
    left: 0;
}

/* Add timeline indicator (optional) */
#experience .nav-tabs::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--text-secondary-color) 50%, 
        transparent 100%);
    opacity: 0.3;
}

/* Responsive improvements */
@media (max-width: 768px) {
    #experience .nav-tabs {
        padding: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    #experience .nav-tabs::-webkit-scrollbar {
        display: none;
    }
    
    /* Remove fixed height constraints - ADD THIS */
    #experience .experience-container {
        min-height: auto;
        max-height: none;
        overflow: visible;  /* Change from hidden */
    }
    
    /* Make tabs wrap if needed - ADD THIS */
    #experience .nav-pills {
        flex-wrap: wrap !important;
        justify-content: flex-start;
    }
    
    #experience .nav-item {
        flex-shrink: 0;
        flex: 0 0 auto;  /* UPDATED */
        margin-bottom: 0.5rem;  /* ADD THIS */
    }
    
    #experience .nav-item .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        white-space: nowrap;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 4px;
    }
    
    /* Make logos smaller but keep them inline */
    #experience .nav-tabs .logo {
        width: 18px !important;
        height: 18px !important;
        margin-right: 4px;
        margin-bottom: 0;
        display: inline-block;
        vertical-align: middle;
    }
    
    /* Override all logo sizes to be consistent on mobile */
    #experience .nav-tabs .logo.enbw,
    #experience .nav-tabs .logo.gft,
    #experience .nav-tabs .logo.phka,
    #experience .nav-tabs .logo.ok,
    #experience .nav-tabs .logo.tag,
    #experience .nav-tabs .logo.safj {
        width: 18px !important;
        height: 18px !important;
    }
    
    #experience .tab-content {
        padding: 1.5rem 1rem;
        min-height: 300px;  /* ADD THIS */
    }

    
    /* Adjust header for mobile */
    #experience .tab-pane h4 {
        font-size: 1.2rem;
        flex-direction: column;
        text-align: center;
    }
    
    #experience .tab-pane h4 .logo {
        margin-bottom: 8px;
    }
    
    /* Wide logos on mobile */
    #experience .logo.enbw {
        width: 60px;
        height: 35px;
    }
    
    #experience .logo.gft {
        width: 60px;
        height: 22px;
    }
    
    #experience .logo.phka {
        width: 60px;
        height: 36px;
    }
    
    #experience .logo.ok {
        width: 65px;
        height: 36px;
    }
    
    #experience .logo.tag {
        width: 65px;
        height: 36px;
    }
    
    #experience .logo.safj {
        width: 65px;
        height: 36px;
    }
    
    /* Ensure container uses full width on mobile */
    #experience .experience-container {
        min-width: 100%;
        margin: 0;
    }
    
    /* Adjust font sizes for better mobile readability */
    #experience .tab-pane {
        font-size: 0.95rem;
    }
    
    #experience .tab-pane ul li {
        padding-left: 25px;
        font-size: 0.9rem;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    #experience .nav-item .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: 70px;
    }
    
    #experience .nav-tabs .logo {
        width: 20px;
        height: 20px;
    }
}

/* Company logos/icons styling */
#experience .tab-pane h4 {
    /* display: flex; */
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Logo container base styles */
#experience .logo {
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: grayscale(0.2);
    transition: filter 0.3s ease;
}

/* Default size for square logos */
#experience .logo {
    width: 45px;
    height: 45px;
}

/* Hover effect */
#experience h4:hover .logo,
#experience .nav-link:hover .logo,
#experience .nav-link.active .logo {
    filter: grayscale(0);
}

/* Tab navigation logos - smaller */
#experience .nav-tabs .logo {
    width: 28px;
    height: 28px;
    margin-right: 8px;
    vertical-align: middle;
    filter: grayscale(0.5);
}

/* Individual company logos with their images and custom sizes */
#experience .logo.adib {
    background-image: url('/images/logos/adib.png');
}

#experience .logo.oneandone {
    background-image: url('/images/logos/1n1.png');
}

#experience .logo.enbw {
    background-image: url('/images/logos/enbw.png');
    width: 90px;
    height: 50px;
}

#experience .logo.gft {
    background-image: url('/images/logos/gft.png');
    width: 100px;
    height: 35px;
}

#experience .logo.phka {
    background-image: url('/images/logos/phka.png');
    width: 90px;
    height: 55px;
}

#experience .logo.cat {
    background-image: url('/images/logos/cat.png');
}

#experience .logo.ok {
    background-image: url('/images/logos/OK.png');
    width: 100px;
    height: 55px;
}

#experience .logo.tag {
    background-image: url('/images/logos/tagbiometrics.png');
    width: 100px;
    height: 55px;
}

#experience .logo.safj {
    background-image: url('/images/logos/safj.jpg');
    width: 100px;
    height: 55px;
}

/* Tab sizes for wide logos */
#experience .nav-tabs .logo.enbw {
    width: 50px;
    height: 24px;
}

#experience .nav-tabs .logo.gft {
    width: 65px;
    height: 22px;
}

/* Alternative: Using Font Awesome or other icon fonts */
#experience .tab-pane h4 i {
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#experience .tab-pane h4:hover i {
    opacity: 1;
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    #experience .nav-tabs {
        background-color: rgba(255, 255, 255, 0.02) !important;
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    #experience .experience-container {
        border-color: rgba(255, 255, 255, 0.05);
    }
}

/* ----------------------------------- End Experience Section ----------------------------------- */

/* Education */

/* Modern Enhanced Education Section */

#education .container > h3 {
    color: var(--text-secondary-color) !important;
}

/* Timeline-style index numbers */
#education .row .index {
    opacity: 0.9;
    padding: 13px 20px;
    line-height: 0%;
    border-radius: 50%;
    max-height: 50px;
    z-index: 2;
    background-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.3);
    transition: all 0.3s ease;
}

/* Hover effect on index */
#education .row:hover .index {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.4);
}

/* Card styling matching other sections */
#education .card {
    background-color: var(--secondary-color) !important;
    border-radius: .75rem;
    box-shadow: 0px 8px 56px rgb(15 80 100 / 16%);
    border: 2px solid var(--text-secondary-color) !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#education .card * {
    background-color: transparent !important;
}

#education .card .card-body {
    border-radius: .75rem;
    padding: 2rem;
    position: relative;
}

/* Hover effect matching other sections */
#education .card:hover {
    box-shadow: 0 4px 11px rgb(15 80 100 / 16%);
    border: 2px solid var(--primary-color) !important;
    transform: translateY(-5px);
}

/* Add subtle gradient on hover */
#education .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

#education .card:hover::before {
    left: 100%;
}

/* Enhanced typography */
#education .card .card-body h4 {
    color: var(--primary-color) !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Add education icon */
#education .card .card-body h4::before {
    content: "🎓";
    font-size: 1.2em;
    filter: grayscale(0.3);
}

#education .card .card-body h6 {
    color: var(--text-color) !important;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

#education .card .card-body small {
    color: var(--text-secondary-color) !important;
    font-style: italic;
    opacity: 0.8;
}

/* Enhanced link styling */
#education .card .card-body .education-content a {
    color: var(--primary-color) !important;
    text-decoration: none;
    opacity: 0.9;
    font-weight: 500;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

#education .card .card-body > a h6 {
    display: inline-block;
    text-decoration: none;
    color: var(--text-color) !important;
    transition: color 0.3s ease;
}

#education .card .card-body > a h6::after {
    content: "";
    display: block;
    width: 0px;
    height: 2px;
    bottom: -2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    opacity: 0.7;
}

#education .card .card-body > a h6:hover {
    color: var(--primary-color) !important;
}

#education .card .card-body > a h6:hover::after {
    width: 100%;
}

/* Modern button styling matching experience section */
#education .card .card-body a.btn {
    opacity: 0.9;
    border: 2px solid var(--primary-color) !important;
    background-color: transparent !important;
    color: var(--primary-color) !important;
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: none;
    font-size: 0.9rem;
}

#education .card .card-body a.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

#education .card .card-body a.btn:hover {
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

#education .card .card-body a.btn:hover::before {
    left: 0;
}

/* Timeline connector removed */

/* Content animation on hover */
#education .card .card-body > * {
    transition: transform 0.3s ease;
}

#education .card:hover .card-body > * {
    transform: translateX(5px);
}

#education .card:hover .card-body a.btn {
    transform: translateX(0) translateY(-2px);
}

/* Responsive improvements */
@media (max-width: 768px) {
    #education .card .card-body {
        padding: 1.5rem;
    }
    
    #education .row .index {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Add subtle pattern background (optional) */
#education .card::after {
    content: "";
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, 
        rgba(var(--primary-color-rgb), 0.05) 0%, 
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    #education .card::after {
        background: radial-gradient(circle, 
            rgba(var(--primary-color-rgb), 0.03) 0%, 
            transparent 70%);
    }
    
    #education .card .card-body h4::before {
        filter: grayscale(0.5);
    }
}

/* ----------------------------------- End Education Section ----------------------------------- */

/* achievements */

#achievements a {
    text-decoration: none;
}

#achievements h3 {
    color: var(--text-secondary-color) !important;
}

#achievements .card {
    cursor: context-menu;
    background-color: var(--secondary-color) !important;
    border-radius: 1rem;
    box-shadow: 0 0 36px rgba(0,0,0,0.1);
    /* transform: translate3d(0, 0, 0); */
    transition: box-shadow .2s linear,opacity .2s linear;
    border: 2px solid transparent;
}

#achievements a.card {
    cursor: alias;
}

#achievements .card h5 {
    color: var(--text-color) !important;
    opacity: 0.9;
}

#achievements .card:hover {
    border: 2px solid var(--text-color);
    transition: .3s;
}
#achievements .card:focus {
    border: 2px solid var(--text-color);
    transition: .3s;
}

#achievements .card-text {
    background-color: var(--secondary-color) !important;
    color: var(--text-secondary-color) !important;
}

#achievements img {
    border-radius: 0.7rem;
}

/* contact */

#contact h3 {
    color: var(--text-secondary-color) !important;
}

#contact .btn {
    transition: none;
    transition: opacity 0.3s;
    border-radius: .5rem !important;
    border-color: var(--primary-color) !important;
    background-color: var(--secondary-color) !important;
    color: var(--text-color) !important;
}

#contact .btn:hover {
    opacity: .7;
}

#contact .btn:focus {
    box-shadow: none !important;
}

#contact form .form-control {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border-radius: .7rem;
    border: 1px solid var(--text-secondary-color);
    box-shadow: 0px 8px 56px rgb(15 80 100 / 5%);
}

#contact-form-status {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1;
    transform: translate3d(0, 0, 0);
}

#contact-form-status svg {
    height: 18px;
    width: 18px;
}

#contact-form-status button {
    border-radius: 50%;
    border: none;
    background-color: white;
    padding: 0.5rem;
    margin-left: 0.5rem;
    box-shadow: 0px 8px 56px rgb(15 80 100 / 5%);
    font-size: .6rem !important;
}

#contact-form-status .alert {
    border-radius: 0.5rem;
    box-shadow: 0px 8px 56px rgb(15 80 100 / 5%);
    padding: .5rem 1rem;
}