/* Global Styles */
:root {
    --primary-color: #FF5C2A;
    --dark-color: #333333;
    --light-color: #FFFFFF;
    --gray-color: #F5F5F5;
    
    /* Light Mode (Default) */
    --bg-color: #FFFFFF;
    --text-color: #313131;
    --card-bg: #2A2A2A;
    --contact-card-bg: #ffffff;
    --border-color: #EEEEEE;
    --section-bg: #222222;
    --hire-me-section-bg: #F1F1F1;
    --navbar-bg: #000000;
    --navbar-text: #FFFFFF;
    --footer-bg: #000000;
    --footer-text: #FFFFFF;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #E0E0E0;
    --card-bg: #1E1E1E;
    --contact-card-bg: #1E1E1E;
    --border-color: #333333;
    --section-bg: #1A1A1A;
    --hire-me-section-bg: #1A1A1A;
    --navbar-bg: #000000;
    --navbar-text: #FFFFFF;
    --footer-bg: #000000;
    --footer-text: #FFFFFF;
    --shadow-color: #121212;
}

/* Theme Toggle Button Styles */
.theme-toggle {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2a2a2a, #333333);
    border: 2px solid rgba(255, 92, 42, 0.3);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2),
                -5px -5px 10px rgba(255, 255, 255, 0.05),
                inset 0 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
    overflow: hidden;
    z-index: 10;
}

.theme-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.3),
                -6px -6px 15px rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 92, 42, 0.6);
}

.theme-toggle:active {
    transform: translateY(0) scale(0.95);
    box-shadow: inset 3px 3px 7px rgba(0, 0, 0, 0.4),
                inset -2px -2px 5px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 92, 42, 0.8);
}

.toggle-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

.theme-toggle .dark-icon,
.theme-toggle .light-icon {
    position: absolute;
    font-size: 20px;
    color: var(--primary-color);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    text-shadow: 0 0 5px rgba(255, 92, 42, 0.3);
}

.theme-toggle .dark-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.theme-toggle .light-icon {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
}

[data-theme="dark"] .theme-toggle .dark-icon {
    opacity: 0;
    transform: scale(0) rotate(180deg);
}

[data-theme="dark"] .theme-toggle .light-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Theme toggle animation */
.theme-toggle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

.theme-toggle:hover::before {
    opacity: 0.3;
    transform: scale(1.2);
}

.theme-toggle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    top: -5px;
    left: -5px;
    z-index: -1;
}

.theme-toggle:hover::after {
    opacity: 0.1;
    transform: scale(0.8);
}

/* Navbar brand container styles */
.navbar-brand-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.navbar-brand-container .theme-toggle {
    width: 38px;
    height: 38px;
    margin-top: 2px;
    border-width: 1.5px;
}

.navbar-brand-container .theme-toggle .dark-icon,
.navbar-brand-container .theme-toggle .light-icon {
    font-size: 18px;
}

@media (max-width: 576px) {
    .navbar-brand-container {
        gap: 8px;
    }

    .splide-arrow-prev{
        left: 25px !important;
    }
    
    .splide-arrow-next{
        right: 25px !important;
    }

    .portfolio-slider-container{
        padding: 0 !important;
    }

    .portfolio-see-more {
        margin-top: 12px;
        padding-right: 0;
    }
    
    .navbar-brand-container .theme-toggle {
        width: 34px;
        height: 34px;
    }
    
    .navbar-brand-container .theme-toggle .dark-icon,
    .navbar-brand-container .theme-toggle .light-icon {
        font-size: 16px;
    }
}

/* Mobile theme toggle styles */
#theme-toggle-mobile {
    margin: 10px auto;
}

/* Page Loader Styles */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

#page.form-control {
    height: 60px;
    padding: 0.375rem 1.5rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.3s ease, color 0.3s ease;
}

.loader-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 100px;
    height: 100px;
    border: 4px solid rgba(255, 92, 42, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
    position: relative;
}

.loader-brand {
    position: absolute;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 20px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.page-loaded #page-loader {
    opacity: 0;
    visibility: hidden;
}

.navbar-brand:focus, .navbar-brand:hover{
    color: white !important;
    transform: translateY(-5px) !important;
    transition: all 0.5s ease !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    background-color: #e04a1f;
    color: var(--light-color);
    transform: translateY(-3px);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Keeps native anchor jumps and in-page controls below the floating navigation. */
section[id] {
    scroll-margin-top: 112px;
}

html{
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    background-color: var(--navbar-bg);
    padding: 15px 0;
    transition: all 0.3s ease;
    margin: 15px auto;
    max-width: 95%;
    box-shadow: 0 5px 20px var(--shadow-color);
    border-radius: 50px;
}

/* Theme Toggle Button */
.theme-toggle {
    background-color: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--navbar-text);
    transition: all 0.3s ease;
    outline: none;
}

.theme-toggle:hover {
    transform: translateY(-3px);
}

.theme-toggle .dark-icon,
.theme-toggle .light-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .dark-icon {
    opacity: 1;
    transform: scale(1);
}

.theme-toggle .light-icon {
    opacity: 0;
    transform: scale(0);
}

[data-theme="dark"] .theme-toggle .dark-icon {
    opacity: 0;
    transform: scale(0);
}

[data-theme="dark"] .theme-toggle .light-icon {
    opacity: 1;
    transform: scale(1);
}

.nav-link:focus, .nav-link:hover{
    color: var(--primary-color);
    background-color: transparent;
    text-decoration: none;
}

/* Hide mobile menu on desktop */
@media (min-width: 992px) {
    #navbarNav {
        display: none !important;
    }
}

/* Show mobile menu only on mobile devices */
@media (max-width: 991px) {
    #navbarNav {
        background-color: #000000;
        border-radius: 15px;
        margin-top: 10px;
        padding: 15px;
    }
    
    #navbarNav .navbar-nav {
        padding: 10px 0;
    }
    
    #navbarNav .nav-link {
        padding: 10px 15px;
        text-align: center;
    }
    
    /* Improve mobile menu appearance */
    .navbar-toggler {
        border: none;
        padding: 5px;
        background-color: var(--primary-color);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 100;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        display: inline-block;
        width: 1.5em;
        height: 1.5em;
        vertical-align: middle;
    }
    
    .bio-intro {
        margin: 0 auto !important;
        padding-top: 30px !important;
        text-align: center;
    }

    .stats-container, .col-right{
        text-align: center !important;
    }

    .rating{
        justify-content: center !important;
    }

    .testimonial-slider-container{
        padding: 0 10px!important;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }
    
    .navbar-toggler-icon {
        width: 1.2em;
        height: 1.2em;
    }
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #FFFFFF;
    display: flex;
    align-items: center;
}

.brand-icon {
    background-color: var(--primary-color);
    color: var(--light-color);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.nav-link {
    color: #FFFFFF;
    font-weight: 500;
    margin: 0 20px;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 8px 0;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

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

.navbar-nav {
    align-items: center;
}

/* Hero Section Styles */
.hero-section {
    padding: 120px 0 0;
    position: relative;
}

.capability-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1060px;
    margin: 28px auto 42px;
    padding: 18px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.capability-label {
    flex: 0 0 auto;
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.capability-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px 0;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.capability-list span + span::before {
    content: '|';
    margin: 0 14px;
    color: var(--primary-color);
    opacity: 0.55;
}

@media (max-width: 768px) {
    .capability-strip {
        display: block;
        margin: 22px 0 28px;
        padding: 16px 0;
        text-align: center;
    }

    .capability-label {
        display: block;
        margin-bottom: 10px;
    }

    .capability-list {
        font-size: 0.84rem;
        line-height: 1.7;
    }
}

.hero-content {
    position: relative;
}

.hello-bubble {
    display: inline-block;
    background-color: var(--contact-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 8px 20px;
    position: relative;
    margin-bottom: 20px;
    color: var(--text-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.hello-bubble:after {
    content: '';
    position: absolute;
    top: -10px;
    right: -5px;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.2;
    position: relative;
    z-index: 0;
}

.hero-subtitle {
    font-size: 1.6rem;
    font-weight: 500;
    /* margin-bottom: 30px; */
    line-height: 1.4;
    position: relative;
    z-index: 0;
    letter-spacing: 0.05em;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Left Column Styles */
.col-left {
    padding-right: 20px;
}

.bio-intro {
    position: relative;
    max-width: 420px;
}

.bio-intro p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 12px;
}

.bio-intro p:last-child {
    margin-bottom: 0;
}

.bio-intro .belief {
    font-size: 1.1rem;
    color: var(--primary-color);
    line-height: 1.8;
    margin: 14px 0;
}

.bio-intro .belief strong {
    font-weight: 600;
    color: var(--text-color);
}

.bio-intro .ellipsis {
    color: var(--primary-color);
    font-size: 1.2rem;
    letter-spacing: 4px;
    margin: 8px 0;
}

/* Belief highlight box */
.belief-box {
    margin-top: 20px;
    padding: 18px 20px;
    border-left: 4px solid var(--primary-color);
    background: rgba(255, 92, 42, 0.06);
    border-radius: 0 12px 12px 0;
    max-width: 420px;
}

.belief-box .belief-cn {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.belief-box .belief-cn .highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.belief-box .belief-en {
    font-size: 0.85rem;
    font-style: italic;
    color: #999;
    margin: 0;
    letter-spacing: 0.02em;
}

.stats-container {
    margin-top: 30px;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0;
}

.stat-item p {
    font-size: 1.8rem;
    color: #666;
}

/* Center Column Styles */
.hero-image-container {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 350px;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image:before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -37px;
    width: 120%;
    height: 76%;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: -1;
}

.hero-image img {
    border-radius: 50%;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 3;
    margin-bottom: -25px;
    padding: 8px;
    border-radius: 50px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-contact-button {
    width: 100%;
    min-height: 48px;
}

/* Keep the Hero balanced on tablet widths, including iPad landscape. */
@media (min-width: 769px) and (max-width: 1199px) {
    .hero-section {
        text-align: center;
    }

    .hero-section .row.align-items-center {
        flex-direction: column;
    }

    .hero-section .row.align-items-center > .col-lg-4 {
        width: 100%;
        max-width: 720px;
        flex: 0 0 auto;
    }

    .col-left,
    .col-right {
        padding-right: 0;
        padding-left: 0;
        text-align: center;
    }

    .bio-intro,
    .belief-box {
        margin-left: auto;
        margin-right: auto;
    }

    .stats-container {
        margin-top: 12px;
    }

    .hero-image-container {
        margin: 28px auto 34px;
    }

    .stats-grid {
        max-width: 420px;
        margin: 0 auto;
        text-align: center;
        justify-items: center;
    }
}

.btn-portfolio {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 92, 42, 0.3);
}

.btn-portfolio i {
    margin-left: 5px;
}

.btn-hire {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    border: 1px solid var(--dark-color);
    color: var(--dark-color);
    background-color: var(--light-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-portfolio:hover {
    background-color: #e64d1f;
    border-color: #e64d1f;
}

.btn-hire:hover {
    background-color: var(--dark-color);
    color: var(--light-color);
}

/* Right Column Styles */
.col-right {
    padding-left: 20px;
}

.rating {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: right;
}

.stats-grid .stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
    line-height: 1.2;
}

.stats-grid .stat-item p {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

/* Services Section Styles */
.services-section {
    padding: 60px 0;
    background-color: var(--section-bg);
    color: var(--text-color);
    border-radius: 30px;
    margin-top: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0;
}

.section-description {
    font-size: 1.1rem;
    color: #cccccc;
    margin-top: 10px;
    border-bottom: 1px solid #444;
    padding-bottom: 20px;
}

.service-card {
    background-color: #2A2A2A;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px var(--shadow-color);
}

.service-card.active {
    background-color: var(--primary-color);
}

.service-header {
    padding: 25px 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card.active .service-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.service-header h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin: 0;
    color: #ffffff;
}

.service-body {
    padding: 0;
    position: relative;
    background-color: #2a2a2a;
    height: 300px;
    overflow: hidden;
}

.service-card.active .service-body {
    background-color: var(--primary-color);
}

.service-image {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    padding: 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image img {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    border-radius: 15px;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.service-link {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.service-card.active .service-link {
    background-color: #fff;
    color: var(--primary-color);
}

.service-link i {
    font-size: 1.2rem;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

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

/* Work Experience Section Styles */
.experience-section {
    padding: 100px 0;
    background-color: #1a1a1a;
    color: #ffffff;
    border-radius: 40px;
    overflow: hidden;
}

.experience-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #ffffff;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #444;
    top: 0;
    bottom: 0;
    left: 28.33%;
    margin-left: 0.5%;
}

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

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

.timeline-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #333;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #e0e0e0;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.timeline-marker.active {
    background-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 92, 42, 0.3);
}

.company h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #ffffff;
}

.period {
    font-size: 1rem;
    color: #aaaaaa;
    margin-bottom: 0;
}

.job-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

/* A clearer single-column timeline for phone and tablet screens. */
@media (max-width: 1199px) {
    .timeline {
        padding: 12px 0 12px;
    }

    .timeline::before {
        left: 10px;
        top: 22px;
        bottom: 22px;
    }

    .timeline-item {
        margin-bottom: 38px;
    }

    .timeline-item .row {
        position: relative;
        display: block;
        padding-left: 42px;
    }

    .timeline-item .row > .col-md-3,
    .timeline-item .row > .col-md-8 {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .timeline-item .row > .col-md-1 {
        position: absolute;
        top: 1px;
        left: 0;
        width: 22px;
        padding: 0;
    }

    .timeline-marker {
        width: 22px;
        height: 22px;
        border-width: 2px;
    }

    .company,
    .job-details {
        margin-bottom: 0;
        text-align: left;
    }

    .company {
        margin-bottom: 12px;
    }

    .company h3 {
        font-size: 1.2rem;
        margin-bottom: 3px;
    }

    .period {
        font-size: 0.86rem;
    }

    .job-title {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 8px;
    }

    .job-description {
        font-size: 0.9rem;
        line-height: 1.75;
    }
}

.job-description {
    font-size: 1rem;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Why Hire Me Section Styles */
.hire-me-section {
    padding: 100px 0;
    background-color: var(--hire-me-section-bg);
    transition: background-color 0.3s ease;
}



.profile-image-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.orange-circle {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.orange-circle img {
    position: absolute;
    width: 110%;
    height: 96%;
    top: 4%;
    left: 0;
    object-fit: cover;
    object-position: center;
    z-index: 3;
    border-radius: 50%;
}

.hire-me-content .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hire-me-content .section-description {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 30px;
    border-bottom: none;
    padding-bottom: 0;
}

.hire-me-content .stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-color);
}

.hire-me-content .stat-item p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0;
}

.hire-btn {
    padding: 12px 40px;
    border-radius: 30px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.hire-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Portfolio Section Styles */
.portfolio-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

/* Keep the transition into the gallery visually connected. */
#case-studies {
    padding-bottom: 40px;
}

.portfolio-slider-container .splide__list{
    padding: 30px 0 !important;
}

.portfolio-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0;
}

.see-more-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 92, 42, 0.3);
}

.portfolio-see-more {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
    padding-right: 30px;
}

.see-more-btn i {
    margin-left: 8px;
}

.portfolio-slider-container {
    position: relative;
    padding: 0 30px;
}

.splide__slide {
    padding: 10px;
    height: auto;
}

.portfolio-item {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    margin: 10px;
    border: 14px solid #fff;
    background-color: #fff;
    height: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: scale(0.85);
    transform-origin: center center;
}

.portfolio-image {
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Portfolio item overlay on hover */
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Portfolio overlay colors */
.splide__slide:first-child .portfolio-overlay {
    background-color: rgba(74, 58, 42, 0.92);
    color: white;
}

.splide__slide:first-child .portfolio-overlay .case-cta {
    color: #8B6F47;
}

.splide__slide:first-child .portfolio-overlay .case-tag {
    border-left-color: #D4A574;
    background: linear-gradient(90deg, rgba(212, 165, 116, 0.3), rgba(212, 165, 116, 0.1));
}

/* Case study content */
.case-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.case-top {
    text-align: left;
}

.case-tag {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding: 8px 14px 8px 10px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.08));
    border-left: 3px solid #fff;
    border-radius: 0 8px 8px 0;
    line-height: 1.4;
}

.case-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.case-desc {
    font-size: 0.88rem;
    line-height: 1.75;
    opacity: 0.92;
    margin: 0;
}

.case-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 7px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.95);
    color: #ff5c2a;
    border-radius: 20px;
    transition: all 0.25s ease;
}

.case-cta i {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
}

.portfolio-link:hover .case-cta {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.portfolio-link:hover .case-cta i {
    transform: translateX(4px);
}

.case-cta-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.case-cta-small {
    font-size: 0.7rem;
    padding: 6px 12px;
    width: fit-content;
}

.case-cta-small i {
    font-size: 0.6rem;
    margin-left: 2px;
}

.case-card {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 14px;
    padding: 16px 18px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.case-card-row {
    display: flex;
    align-items: baseline;
    padding: 5px 0;
    font-size: 0.78rem;
    line-height: 1.5;
    white-space: nowrap;
}

.case-card-row + .case-card-row {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.case-label {
    flex-shrink: 0;
    width: 68px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.case-value {
    flex: 1;
    font-weight: 500;
    opacity: 0.98;
}

.portfolio-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    cursor: pointer;
}

.blue-overlay {
    background-color: rgba(30, 58, 138, 0.92);
    color: white;
}

.blue-overlay .case-cta {
    color: #1E3A8A;
}

.blue-overlay .case-tag {
    border-left-color: #93C5FD;
    background: linear-gradient(90deg, rgba(147, 197, 253, 0.3), rgba(147, 197, 253, 0.1));
}

.dark-overlay {
    background-color: rgba(26, 15, 10, 0.92);
    color: white;
}

.dark-overlay .case-cta {
    color: #8B6914;
}

.dark-overlay .case-tag {
    border-left-color: #D4A017;
    background: linear-gradient(90deg, rgba(212, 160, 23, 0.3), rgba(212, 160, 23, 0.1));
}

.portfolio-overlay.ink-overlay {
    background-color: rgba(61, 46, 34, 0.92) !important;
    color: white;
}

.ink-overlay .case-cta {
    color: #3D2E22;
}

.ink-overlay .case-tag {
    border-left-color: #C9A962;
    background: linear-gradient(90deg, rgba(201, 169, 98, 0.3), rgba(201, 169, 98, 0.1));
}

.design-category {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.design-tools {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tool-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
}

.tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: 600;
    background-color: white;
    color: #333;
}

.figma .tool-icon {
    background-color: #F24E1E;
    color: white;
}

.adobe-xd .tool-icon {
    background-color: #FF61F6;
    color: white;
}

.photoshop .tool-icon {
    background-color: #31A8FF;
    color: white;
}

.html .tool-icon {
    background-color: #E34F26;
    color: white;
}

.css .tool-icon {
    background-color: #1572B6;
    color: white;
}

.sketch .tool-icon {
    background-color: #F7B500;
    color: white;
}

.ai .tool-icon {
    background-color: #FF9A00;
    color: white;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.03);
}

.splide-custom-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

.splide-arrow-prev,
.splide-arrow-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* border: none; */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    pointer-events: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.411);
    border: 5px solid white;
}

.splide-arrow-prev {
    background-color: var(--primary-color);
    color: #fff;
    left: -50px;
}

.splide-arrow-next {
    background-color: var(--primary-color);
    color: #fff;
    right: -50px;
}

.splide-arrow-prev i,
.splide-arrow-next i, .link-arrow i {
    font-size: 18px;
}

.splide-arrow-prev:hover,
.splide-arrow-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.category-tags {
    display: inline-flex;
    gap: 15px;
    margin-top: 20px;
}

.category-tag {
    padding: 8px 20px;
    background-color: #f2f2f2;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tag.active {
    background-color: #333;
    color: #fff;
}

.portfolio-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    margin-left: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.link-arrow:hover {
    transform: translateX(3px);
    background-color: #e64d1f;
}

.portfolio-description {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Testimonials Section Styles */
.testimonials-section {
    padding: 100px 0;
    background-color: #222;
    color: #fff;
    border-radius: 20px;
    /* margin: 50px 0; */
}

.testimonials-section .section-header {
    position: relative;
}

.testimonials-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
}

.testimonials-section .text-primary {
    color: var(--primary-color) !important;
}

.testimonials-section .section-subtitle {
    font-size: 1rem;
    color: #c9c9c9;
    max-width: 600px;
    margin: 0 auto;
}

.star-icon {
    position: absolute;
    left: 0;
    top: -8px;
    transform: translateY(-50%);
    font-size: 50px;
    color: #fff;
}

.highlight-icon {
    display: inline-block;
    margin-left: 10px;
    font-size: 50px;
    color: #fff;
}

.testimonial-slider-container {
    position: relative;
    margin-top: 30px;
    padding: 0 30px;
}

.testimonial-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    margin: 15px;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    color: var(--text-color);
}

.testimonial-slider-container .splide__list{
    padding: 20px 0 !important;
}

.rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    justify-content: flex-end;
}

.rating i {
    color: var(--primary-color);
    margin-right: 5px;
}

.rating-value {
    font-weight: 600;
    font-size: 1.1rem;
    margin-left: 10px;
}

.testimonial-content {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #ddd;
}

.quote-icon {
    position: absolute;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.quote-icon.left {
    top: 20px;
    left: 20px;
}

.quote-icon.right {
    bottom: 60px;
    right: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.author-title {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 0;
}

.testimonial-navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonial-arrow-prev,
.testimonial-arrow-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    color: #fff;
}


.testimonial-arrow-prev:hover,
.testimonial-arrow-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Contact Section Styles */
.contact-section {
    padding: 100px 0 0;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.contact-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 40px;
    color: var(--text-color);
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto 30px;
}

.email-input-wrapper {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.email-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #FF5C2A;
    border-radius: 50%;
    margin-left: 5px;
    margin-right: 10px;
    color: #fff;
}

.email-input {
    flex: 1;
    border: none;
    padding: 12px 15px 12px 0;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.email-input::placeholder {
    color: #777;
}

.book-call-btn {
    background-color: #FF5C2A;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.credentials-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.credential-item i {
    color: var(--primary-color);
}

.services-wave {
    background-color: var(--bg-color);
    /* margin-top: 80px; */
    position: relative;
    overflow: hidden;
    transform: rotate(-2deg) scale(1.1);
    padding: 12px 0;
    margin-left: -20px;
    margin-right: -20px;
}

.services-marquee{
    background: var(--primary-color);
    padding: 24px 0;
    border-radius: 50px;
}

.services-wave::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 100% 100% 0 0;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
}

.marquee-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 10px 0;
    transform: rotate(2deg); /* Counter-rotate to make text straight */
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.service-separator {
    font-size: 1rem;
    color: var(--primary-color);
    margin: 0 15px;
}

.service-item {
    white-space: nowrap;
    letter-spacing: 0.5px;
    color: var(--text-color);
}

/* Full Contact Section Styles */
.full-contact-section {
    padding: 120px 0 100px;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.contact-info-wrapper {
    padding-right: 30px;
}

.section-badge {
    display: inline-block;
    background-color: rgba(255, 92, 42, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.contact-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.contact-header .section-description {
    color: #666;
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-methods {
    margin-bottom: 40px;
}

.contact-method-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--primary-color);
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.contact-method-item:hover .icon-box {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.contact-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-details p {
    color: #666;
    margin-bottom: 0;
}

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background-color: var(--contact-card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px var(--shadow-color);
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-color);
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(255, 92, 42, 0.1);
    z-index: -1;
}

.form-floating > .form-control,
.form-floating > .form-select {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px !important;
    height: calc(3.5rem + 2px);
    box-shadow: none;
    transition: all 0.3s ease;
    background-color: var(--contact-card-bg);
    color: var(--text-color);
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 92, 42, 0.1);
}

.form-floating > textarea.form-control {
    height: 150px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
}

.submit-btn i {
    transition: all 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

.submit-btn:hover{
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background-color: rgba(255, 92, 42, 0.05);
    bottom: -150px;
    left: 10%;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background-color: rgba(255, 92, 42, 0.08);
    bottom: -100px;
    right: 20%;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background-color: rgba(255, 92, 42, 0.1);
    bottom: -50px;
    right: 5%;
}

/* Footer Styles */
.footer {
    background-color: #111;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.footer-top {
    padding: 80px 0 50px;
    position: relative;
    z-index: 1;
}

.footer-logo h2 {
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: -0.5px;
}

.footer-description {
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.footer-social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 20px;
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    color: #aaa;
}

.footer-contact-info li i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 3px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.copyright {
    color: #aaa;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.footer-bottom-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

.footer-shape-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 92, 42, 0.1) 0%, rgba(255, 92, 42, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.footer-shape-2 {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 92, 42, 0.1) 0%, rgba(255, 92, 42, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

@media (max-width: 768px) {
    .footer-bottom-links {
        justify-content: flex-start;
        margin-top: 15px;
    }

    .timeline::before{
        display: none;
    }

    .link-arrow{
        width: 35px;
        height: 35px;
    }
}
@media (max-width: 1200px) {
    .btn-portfolio, .btn-hire{
        padding: 12px 20px;
    }
}
/* Extra Small Device Styles */
@media (max-width: 375px) {
    /* Adjust navbar */
    .navbar {
        padding: 8px 0;
        margin: 5px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .brand-icon {
        width: 25px;
        height: 25px;
        line-height: 25px;
        font-size: 14px;
    }
    
    /* Adjust hero section */
    .hero-section {
        padding: 90px 0 20px;
    }
    
    .hello-bubble {
        padding: 5px 15px;
        font-size: 14px;
    }
    
    .hero-title, .hero-subtitle {
        font-size: 1.4rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-image-container {
        max-width: 220px;
    }
    
    .stats-item {
        padding: 5px;
    }
    
    .stats-number {
        font-size: 1.2rem;
    }
    
    .stats-text {
        font-size: 11px;
    }
    
    /* Adjust buttons */
    .btn-portfolio, .btn-hire, .book-call-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    /* Adjust services */
    .service-card {
        padding: 10px;
    }
    
    .service-header h3 {
        font-size: 14px;
    }
    
    .service-description {
        font-size: 12px;
    }
    
    /* Adjust testimonials */
    .testimonial-content {
        font-size: 12px;
    }
    
    .author-name {
        font-size: 13px;
    }
    
    .author-position {
        font-size: 11px;
    }
    
    /* Adjust contact form */
    .form-floating label {
        font-size: 11px;
    }
    
    .form-control {
        height: 45px;
        font-size: 13px;
    }
    
    textarea.form-control {
        min-height: 80px;
    }
    
    .contact-method-text {
        font-size: 12px;
    }
    
    .contact-form-wrapper {
        padding: 12px;
    }
    
    .contact-info-wrapper {
        padding: 12px;
    }
    
    .contact-header h3 {
        font-size: 18px;
    }
    
    .section-badge {
        font-size: 11px;
        padding: 4px 12px;
    }
    
    /* Adjust footer */
    .footer-description {
        font-size: 12px;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title, .hero-subtitle {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hello-bubble{
        padding: 14px 42px;
        font-size: 30px;
    }

    .hello-bubble:after{
        width: 35px;
        height: 35px;
    }

    .cta-buttons{
        flex-direction: column;

    }
    
    .hero-image-container {
        margin: 30px auto;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .service-card {
        margin-bottom: 30px;
    }
    
    .hire-me-wrapper {
        padding: 40px 30px;
    }
    
    .profile-image-container {
        margin-bottom: 40px;
    }
    
    /* Testimonial adjustments for tablet */
    .testimonial-card {
        padding: 25px;
        margin: 10px;
    }
    
    /* Portfolio adjustments */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Services marquee */
    .marquee-item {
        padding: 0 20px;
    }
    
    /* Contact form adjustments */
    .contact-form-wrapper, .contact-info-wrapper {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .hero-title, .hero-subtitle {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .navbar {
        border-radius: 15px;
        margin: 10px;
    }
    
    .hero-section {
        padding: 140px 0 30px;
        text-align: center;
    }
    
    /* Hero section adjustments for better mobile display */
    .hero-image-container {
        max-width: 500px;
        margin: 20px auto;
    }
    
    .hello-bubble {
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .services-section {
        margin-top: 20px;
        border-radius: 20px;
        padding: 60px 0;
    }
    
    .col-left, .col-right {
        text-align: center;
        padding: 20px 0;
    }
    
    .stats-grid {
        text-align: center;
        justify-items: center;
    }
    
    .testimonial {
        margin: 0 auto;
        padding-left: 0;
        padding-top: 30px;
    }
    
    .quote-mark {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .rating {
        justify-content: center;
        display: flex;
    }
    
    .section-title, .section-description {
        text-align: center;
    }
    
    .timeline::before {
        left: 50%;
        margin-left: -1px;
    }
    
    .company, .job-details {
        text-align: center;
        margin-bottom: 20px;
    }
    
    /* Portfolio adjustments */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Testimonial slider */
    .splide__slide {
        padding: 10px;
    }
    
    /* Contact form */
    .full-contact-section .row {
        flex-direction: column;
    }
    
    .contact-info-wrapper, .contact-form-wrapper {
        margin-bottom: 30px;
    }
    
    /* Services marquee */
    .marquee-item {
        padding: 0 15px;
        font-size: 14px;
    }
    
    /* Footer adjustments */
    .footer-top .row > div {
        margin-bottom: 30px;
    }
}

@media (max-width: 420px) {
    .category-tag{
        font-size: 0.7rem;
    }

    .email-input{
        width: 100px;
    }
    
    /* Improve contact section for very small devices */
    .contact-form-wrapper, .contact-info-wrapper {
        padding: 15px;
    }
    
    .form-floating label {
        font-size: 12px;
    }
    
    .contact-method {
        padding: 10px;
    }
    
    .contact-method-icon {
        width: 35px;
        height: 35px;
    }
    
    /* Adjust hero section */
    .hero-image-container {
        max-width: 280px;
    }
    
    .hello-bubble {
        padding: 8px 20px;
        font-size: 18px;
    }
    
    .hero-title, .hero-subtitle {
        font-size: 1.6rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Adjust testimonial section */
    .testimonial-card {
        padding: 12px;
    }
    
    .testimonial-content {
        font-size: 13px;
    }
    
    /* Adjust service cards */
    .service-card {
        padding: 12px;
    }
    
    .service-header h3 {
        font-size: 16px;
    }
    
    /* Adjust footer */
    .footer-nav-link {
        font-size: 13px;
    }
    
    .footer-bottom-copyright {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .hero-title, .hero-subtitle {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .star-icon{
        top: -30px;
    }

    .book-call-btn{
        padding: 10px 17px;
    }

    .category-tags{
        /* display: block; */
        gap: 3px;
    }

    .splide__slide{
        padding: 0 !important;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-portfolio, .btn-hire {
        width: 100%;
        text-align: center;
        padding: 10px 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    /* Improved hero section for extra small devices */
    .hero-image-container {
        max-width: 350px;
        margin: 15px auto;
    }
    
    .stats-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stats-item {
        width: 45%;
        margin-bottom: 10px;
        padding: 10px;
    }
    
    .stats-number {
        font-size: 1.5rem;
    }
    
    /* Better spacing for small screens */
    .section-padding {
        padding: 40px 0;
    }
    
    /* Improved testimonial display */
    .testimonial-card {
        margin: 0;
        padding: 15px;
    }
    
    /* Better form display */
    .form-floating {
        margin-bottom: 15px;
    }
    
    .form-control {
        padding: 12px 15px;
    }
    
    /* Adjust service cards */
    .service-card {
        padding: 15px;
    }
    
    /* Navbar adjustments */
    .navbar {
        padding: 10px 0;
        margin: 8px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Hero section */
    .hero-section {
        padding: 110px 0 20px;
    }
    
    .hello-bubble {
        padding: 10px 30px;
        font-size: 25px;
    }
    
    /* Services */
    .services-section {
        padding: 40px 0;
    }
    
    /* Experience timeline */
    .timeline-item {
        padding: 15px;
    }
    
    /* Testimonials */
    .testimonial-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .author-image {
        margin-bottom: 10px;
    }
    
    /* Contact form */
    .contact-form-wrapper, .contact-info-wrapper {
        padding: 20px;
    }
    
    .contact-method {
        padding: 15px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-top, .footer-bottom {
        padding: 20px 0;
    }
    
    .footer-logo {
        margin-bottom: 15px;
    }
    
    .footer-bottom-links, .footer-bottom-copyright {
        text-align: center;
        justify-content: center;
    }
}

/* ==================== More Works Modal ==================== */
.more-works-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.more-works-modal.active {
    display: flex;
}

.works-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.works-modal-content {
    position: relative;
    background: #fff;
    border-radius: 24px;
    max-width: 1000px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px 50px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.works-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.works-modal-close:hover {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(90deg);
}

.works-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.works-modal-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.works-modal-subtitle {
    font-size: 0.95rem;
    color: #888;
    margin: 0;
}

.works-modal-body {
    width: 100%;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.work-card {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 18px;
    padding: 24px 26px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.work-card-more {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-style: dashed;
    background: transparent;
    cursor: default;
}

.work-card-more .work-tags {
    justify-content: center;
}

.work-card-more:hover {
    transform: none;
    box-shadow: none;
    border-color: #ccc;
}

.work-card-more .work-title {
    font-size: 1.6rem;
    color: #bbb;
    letter-spacing: 0.3em;
    margin-bottom: 6px;
    align-self: center;
}

.work-card-more .work-desc {
    color: #bbb;
    font-size: 0.8rem;
    margin: 0;
    align-self: center;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.work-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(255, 92, 42, 0.1);
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.work-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
}

.work-desc {
    font-size: 0.82rem;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* Modal scrollbar */
.works-modal-content::-webkit-scrollbar {
    width: 6px;
}

.works-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.works-modal-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.works-modal-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Responsive for modal */
@media (max-width: 768px) {
    .portfolio-overlay {
        padding: 18px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .case-content {
        height: auto;
        min-height: 100%;
        gap: 14px;
    }

    .case-tag {
        margin-bottom: 10px;
        padding: 6px 10px 6px 8px;
        font-size: 0.78rem;
    }

    .case-title {
        font-size: 1.22rem;
        margin-bottom: 8px;
    }

    .case-desc {
        font-size: 0.76rem;
        line-height: 1.6;
    }

    .case-card {
        padding: 10px 12px;
    }

    .case-card-row {
        white-space: normal;
        font-size: 0.7rem;
    }

    .case-label {
        width: 54px;
        font-size: 0.66rem;
    }

    .works-modal-content {
        padding: 30px 22px;
        border-radius: 18px;
    }

    .works-modal-title {
        font-size: 1.5rem;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .work-card {
        padding: 20px 22px;
    }

    .work-title {
        font-size: 1.05rem;
    }
}

/* ==================== Awards & Credentials Section ==================== */
.awards-section {
    padding: 92px 0;
    background: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.awards-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 44px;
}

.awards-eyebrow,
.awards-panel-heading p,
.award-label {
    margin: 0 0 8px;
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.awards-intro {
    max-width: 270px;
    margin: 0 0 6px;
    color: var(--text-color);
    opacity: 0.68;
    line-height: 1.7;
}

.awards-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 46px;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #1b1b1b;
    color: #ffffff;
}

.awards-navigator {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    max-width: 920px;
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.awards-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    min-height: 132px;
    padding: 20px;
    border: 0;
    border-radius: 8px 8px 0 0;
    background: #f5f3e6;
    color: #242424;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.awards-trigger:nth-child(odd),
.awards-trigger:nth-child(even) { background: rgba(245, 243, 230, 0.95); color: #242424; }
.awards-trigger .archive-index { font-size: 0.76rem; font-weight: 700; letter-spacing: 1px; opacity: 0.72; }
.awards-trigger .archive-name { font-size: 1rem; font-weight: 700; }
.awards-trigger:hover,
.awards-trigger:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; }
.awards-trigger:hover { filter: brightness(0.97); }
.awards-trigger.is-active { background: rgba(252, 112, 59, 0.92); color: #ffffff; transform: translateY(-10px); filter: none; }
.awards-trigger.is-active .archive-index { color: #ffffff; opacity: 0.72; }

[data-theme="dark"] .awards-trigger:nth-child(odd),
[data-theme="dark"] .awards-trigger:nth-child(even) { background: #292821; color: var(--text-color); }
[data-theme="dark"] .awards-trigger.is-active { background: rgba(186, 82, 46, 0.92); color: #ffffff; }

.awards-grid {
    display: block;
    margin: 0;
}

.awards-panel { display: none; }
.awards-panel.is-active {
    display: block;
    max-width: 920px;
    margin: 0 auto;
    border-radius: 0 0 8px 8px;
    animation: awardPanelIn 0.28s ease both;
}

@keyframes awardPanelIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.award-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 30px 34px 32px;
}

.award-stat + .award-stat { border-left: 1px solid rgba(255, 255, 255, 0.16); }
.award-stat strong { color: var(--primary-color); font-size: 3.35rem; line-height: 0.95; letter-spacing: 0; }
.award-stat strong span { font-size: 1.75rem; }
.award-stat > span { color: rgba(255, 255, 255, 0.78); font-size: 0.9rem; font-weight: 600; }

[data-theme="dark"] .awards-summary {
    background: #262626;
    border: 1px solid #353535;
}

.awards-grid {
    display: block;
    gap: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
}

.awards-panel {
    min-height: 100%;
    padding: 36px;
    border: 0;
    border-radius: 0;
    transition: filter 0.25s ease;
}

.awards-panel:hover { transform: none; filter: brightness(0.97); }
.awards-panel:nth-child(odd),
.awards-panel:nth-child(even) { padding: 36px; border-right: 0; }

.awards-grid .awards-panel.is-active { border-radius: 0 0 8px 8px; }

.awards-panel-provincial { background: rgba(252, 112, 59, 0.88); color: #ffffff; }
.awards-panel-city { background: rgba(252, 112, 59, 0.88); color: #ffffff; }
.awards-panel-industry { background: rgba(252, 112, 59, 0.88); color: #ffffff; }
.awards-panel-credentials { background: rgba(252, 112, 59, 0.88); color: #ffffff; }

[data-theme="dark"] .awards-panel-provincial { background: rgba(186, 82, 46, 0.9); }
[data-theme="dark"] .awards-panel-city { background: rgba(186, 82, 46, 0.9); }
[data-theme="dark"] .awards-panel-industry { background: rgba(186, 82, 46, 0.9); }
[data-theme="dark"] .awards-panel-credentials { background: rgba(186, 82, 46, 0.9); }

.awards-panel-provincial .awards-panel-heading p,
.awards-panel-provincial .awards-panel-heading h3,
.awards-panel-provincial .award-tier,
.awards-panel-provincial .award-work h4,
.awards-panel-provincial .award-work p,
.awards-panel-provincial .award-single,
.awards-panel-industry .awards-panel-heading h3,
.awards-panel-industry .industry-honor,
.awards-panel-industry > p {
    color: #ffffff;
}

.awards-panel-provincial .awards-panel-heading p,
.awards-panel-provincial .award-work p { opacity: 0.78; }
.awards-panel-provincial .award-tier { border-left-color: #ffffff; background: rgba(255, 255, 255, 0.14); }
.awards-panel-provincial .award-tier em,
.awards-panel-provincial .awards-index { color: #ffffff; }

.awards-panel-city .awards-panel-heading h3,
.awards-panel-credentials .awards-panel-heading h3 { color: #d95b2e; }
.awards-panel-industry .industry-honor i { color: #ffffff; }
.awards-panel-credentials .credentials-grid i { color: #d95b2e; }

.awards-panel-industry .awards-panel-heading h3,
.awards-panel-industry .industry-honor,
.awards-panel-industry .industry-honor strong,
.awards-panel-industry > p {
    color: #ffffff !important;
}

.awards-panel-industry .industry-honor i {
    color: #ffffff !important;
}

[data-theme="dark"] .awards-panel-city .awards-panel-heading h3,
[data-theme="dark"] .awards-panel-credentials .awards-panel-heading h3,
[data-theme="dark"] .awards-panel-credentials .credentials-grid i { color: #ff8258; }

/* Every opened archive uses the same orange-and-white reading treatment. */
.awards-panel .awards-panel-heading h3,
.awards-panel .award-tier,
.awards-panel .award-tier em,
.awards-panel .award-work h4,
.awards-panel .award-work p,
.awards-panel .award-single,
.awards-panel .award-counts span,
.awards-panel .award-counts strong,
.awards-panel .award-label,
.awards-panel .award-work-list li,
.awards-panel .industry-honor,
.awards-panel .industry-honor strong,
.awards-panel > p,
.awards-panel .credentials-grid li,
.awards-panel .credentials-grid i {
    color: #ffffff !important;
}

.awards-panel .award-tier,
.awards-panel .award-counts span {
    border-left-color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.awards-panel .award-work-list li::before { color: #ffffff; }
.awards-panel-heading { display: block; margin-bottom: 24px; }
.awards-panel-heading p { opacity: 0.9; }
.awards-panel-heading h3 { margin: 0; color: var(--text-color); font-size: 1.5rem; font-weight: 700; }
.awards-index { display: none; }

.award-tier { display: inline-flex; gap: 14px; align-items: center; padding: 7px 11px; border: 0; border-left: 3px solid var(--primary-color); background: rgba(255, 92, 42, 0.08); color: var(--text-color); font-size: 0.88rem; font-weight: 700; }
.award-tier em { color: var(--primary-color); font-style: normal; }
.award-tier-secondary { margin-top: 26px; }
.award-work { padding: 18px 0 0; border: 0; }
.award-work h4, .award-single { margin: 0; color: var(--text-color); font-size: 1rem; font-weight: 700; line-height: 1.55; }
.award-work p { margin: 8px 0 0; color: var(--text-color); font-size: 0.88rem; line-height: 1.75; opacity: 0.7; }
.award-single { padding-top: 14px; font-weight: 600; }

.award-counts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.award-counts span { padding: 7px 10px; border: 0; border-left: 2px solid var(--primary-color); background: rgba(255, 92, 42, 0.06); color: var(--text-color); font-size: 0.78rem; }
.award-counts strong { color: var(--primary-color); }
.award-work-list { margin: 0; padding: 0; list-style: none; }
.award-work-list li { padding: 0 0 13px; border: 0; color: var(--text-color); font-size: 0.93rem; line-height: 1.5; }
.award-work-list li::before { content: '•'; margin-right: 9px; color: var(--primary-color); }

.awards-panel-industry,
.awards-panel-credentials { padding-bottom: 30px; }
.industry-honor { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--text-color); }
.industry-honor i { color: var(--primary-color); }
.awards-panel-industry > p { margin: 0; color: var(--text-color); opacity: 0.7; }
.credentials-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: 0; padding: 0; list-style: none; }
.credentials-grid li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border: 0; color: var(--text-color); font-size: 0.88rem; line-height: 1.45; }
.credentials-grid i { width: 16px; color: var(--primary-color); text-align: center; }

/* Keep city awards aligned with the industry-honor typography. */
.awards-panel-city .awards-panel-heading h3,
.awards-panel-city .award-counts,
.awards-panel-city .award-work-list {
    font-family: inherit;
}

.awards-panel-city .awards-panel-heading h3 {
    font-weight: 700;
    letter-spacing: 0;
}

.awards-panel-city .award-counts span {
    color: #1a1a1a;
    font-size: 0.98rem;
    font-weight: 700;
    opacity: 1;
}

.awards-panel-city .award-work-list li {
    color: var(--text-color);
    font-weight: 400;
    opacity: 0.7;
}

.awards-panel-city .award-counts strong {
    color: inherit;
}

[data-theme="dark"] .awards-panel-city .award-counts span { color: var(--text-color); }

@media (max-width: 768px) {
    .awards-section { padding: 72px 0; }
    .awards-heading { display: block; }
    .awards-intro { margin-top: 14px; }
    .awards-summary { grid-template-columns: 1fr; margin-bottom: 34px; }
    .award-stat + .award-stat { border-top: 1px solid rgba(255, 255, 255, 0.16); border-left: 0; }
    .awards-navigator { grid-template-columns: repeat(2, 1fr); gap: 5px; }
    .awards-trigger { min-height: 96px; padding: 16px; border-radius: 6px 6px 0 0; }
    .awards-grid { grid-template-columns: 1fr; }
    .awards-panel.is-active { max-width: none; }
    .awards-panel:nth-child(odd), .awards-panel:nth-child(even) { padding: 30px; }
}

@media (max-width: 576px) {
    .awards-panel, .awards-panel:nth-child(odd), .awards-panel:nth-child(even) { padding: 24px; }
    .award-stat { padding: 22px 24px; }
    .award-stat strong { font-size: 2.8rem; }
    .credentials-grid { grid-template-columns: 1fr; }
}

/* ==================== Media Gallery Section ==================== */
.media-section {
    padding: 80px 0;
    background: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.media-section-after-portfolio {
    padding-top: 32px;
}

.media-subtitle {
    font-size: 0.95rem;
    color: #888;
    margin: -10px 0 0 0;
}

[data-theme="dark"] .media-subtitle {
    color: var(--text-color);
    opacity: 0.72;
}

/* Filter Tags */
.media-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.media-filter-tag {
    display: inline-block;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    background: #f5f5f5;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

.media-filter-tag:hover {
    color: var(--primary-color);
    background: rgba(255, 92, 42, 0.08);
}

.media-filter-tag.active {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Masonry Layout */
.media-masonry {
    columns: 3;
    column-gap: 18px;
}

.media-gallery-frame.media-gallery-collapsed {
    position: relative;
    height: clamp(560px, 56vw, 820px);
    overflow: hidden;
}

.media-gallery-frame.media-gallery-collapsed::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 150px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--bg-color));
}

.media-item {
    break-inside: avoid;
    margin-bottom: 18px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.media-item:hover {
    transform: translateY(-4px);
}

.media-item.media-item-hidden {
    display: none;
}

.media-gallery-actions {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.media-load-more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    background: transparent;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.media-load-more:hover {
    background: var(--primary-color);
    color: #fff;
}

.media-load-more i {
    transition: transform 0.2s ease;
}

.media-load-more[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.media-thumb {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.media-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.media-item:hover .media-thumb img {
    transform: scale(1.05);
}

/* Hover Info Overlay */
.media-hover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
    color: #fff;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.35s ease;
}

.media-item:hover .media-hover-info {
    opacity: 1;
    transform: translateY(0);
}

.media-hover-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
}

.media-hover-info p {
    font-size: 0.78rem;
    margin: 0;
    opacity: 0.85;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Filter Animation */
.media-item.hide {
    display: none;
}

/* ==================== Media Lightbox ==================== */
.media-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.media-lightbox.active {
    display: flex;
}

.media-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
}

.media-lightbox-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    animation: lbSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .media-lightbox-content {
    background: var(--card-bg);
}

@keyframes lbSlideUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.media-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.media-lightbox-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.media-lightbox-image {
    width: 100%;
}

.media-lightbox-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.media-lightbox-image img {
    max-width: 100%;
    max-height: 55vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transform-origin: center;
    transition: transform 0.2s ease;
    cursor: zoom-in;
}

.media-lightbox-image img.is-zoomed {
    cursor: grab;
}

.media-lightbox-info {
    padding: 24px 30px 28px;
}

.media-lightbox-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
}

[data-theme="dark"] .media-lightbox-info h3 {
    color: var(--text-color);
}

.media-lightbox-info p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: #666;
    margin: 0 0 14px;
}

[data-theme="dark"] .media-lightbox-info p {
    color: var(--text-color);
    opacity: 0.78;
}

.media-lightbox-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.media-lightbox-zoom {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
}

.media-lightbox-zoom button,
.media-lightbox-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.media-lightbox-zoom button {
    width: 34px;
    height: 34px;
    border-radius: 4px;
}

.media-lightbox-zoom button:hover,
.media-lightbox-nav:hover {
    background: var(--primary-color);
}

.media-lightbox-nav {
    position: absolute;
    top: 42%;
    z-index: 11;
    width: 42px;
    height: 52px;
    font-size: 16px;
}

.media-lightbox-prev {
    left: 0;
    border-radius: 0 6px 6px 0;
}

.media-lightbox-next {
    right: 0;
    border-radius: 6px 0 0 6px;
}

.lightbox-category-tag {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(255, 92, 42, 0.1);
    border-radius: 20px;
}

/* Lightbox scrollbar */
.media-lightbox-content::-webkit-scrollbar {
    width: 5px;
}

.media-lightbox-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 992px) {
    .media-masonry {
        columns: 2;
    }

    .media-gallery-frame.media-gallery-collapsed {
        height: 680px;
    }
}

@media (max-width: 576px) {
    .media-masonry {
        columns: 1;
    }

    .media-gallery-frame.media-gallery-collapsed {
        height: 580px;
    }

    .media-section {
        padding: 50px 0;
    }

    .media-section-after-portfolio {
        padding-top: 28px;
    }

    .media-filter-tags {
        gap: 8px;
    }

    .media-filter-tag {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .media-lightbox-info {
        padding: 18px 20px 22px;
    }

    .media-lightbox-meta {
        flex-direction: column;
        gap: 12px;
    }

    .media-lightbox-nav {
        top: 35%;
        width: 36px;
        height: 46px;
    }
}

@media (max-width: 768px) {
    .timeline::before {
        left: 10px;
        margin-left: 0;
    }

    .company,
    .job-details {
        text-align: left;
        margin-bottom: 0;
    }
}
