/* ============================================
   SPECIALTY COMPONENTS & EFFECTS
   ============================================ */

/* ===== QUALIFICATION TIMELINE ===== */
.qualification__tabs {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: var(--mb-2);
}

.qualification__button {
    font-size: var(--h3-font-size);
    font-weight: var(--font-medium);
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.qualification__button:hover,
.qualification__button.qualification__active {
    color: var(--primary-color);
}

.qualification__icon {
    font-size: 1.8rem;
    margin-right: var(--mb-0-25);
}

.qualification__data {
    display: grid;
    grid-template-columns: 1fr max-content 1fr;
    column-gap: 1.5rem;
}

.qualification__title {
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    color: var(--title-color);
}

.qualification__subtitle {
    display: inline-block;
    font-size: var(--small-font-size);
    margin-bottom: var(--mb-1);
    color: var(--text-light);
}

.qualification__calendar {
    font-size: var(--smaller-font-size);
    color: var(--text-light);
}

.qualification__rounder {
    display: inline-block;
    width: 13px;
    height: 13px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.qualification__line {
    display: block;
    width: 1px;
    height: 100%;
    background-color: var(--primary-color);
    transform: translate(6px, -7px);
}

.qualification__content[data-content] {
    display: none;
}

.qualification__active[data-content] {
    display: block;
}

/* ===== LANGUAGE SKILLS ===== */
.languages-container {
    margin-top: var(--mb-1);
}

.language-item {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--mb-1);
}

.language-name {
    min-width: 100px;
    color: var(--text-dark);
    font-weight: var(--font-medium);
}

.language-level {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.language-progress {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.language-proficiency {
    color: var(--text-light);
    font-size: 0.9rem;
    min-width: 120px;
    text-align: right;
}

/* ===== QUICK FACTS ===== */
.quick-facts h4 {
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    position: relative;
}

.quick-facts h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.quick-facts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-facts li {
    padding: var(--mb-0-5) 0;
    border-bottom: 1px solid #f1f3f5;
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--mb-0-5);
}

.quick-facts li:last-child {
    border-bottom: none;
}

.social-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

/* ===== EXPERTISE GRID ===== */
.expertise-subtitle {
    color: var(--text-light);
    margin-bottom: var(--mb-2);
    font-size: 1.1rem;
    max-width: 800px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--mb-2);
    margin: var(--mb-2) 0 var(--mb-3);
    transition: var(--transition);
}

.expertise-item {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--mb-1-5);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.expertise-icon {
    width: 30px;
    height: 30px;
    display: flex;
    margin-bottom: var(--mb-1);
    color: var(--primary-color);
}

.expertise-item h4 {
    color: var(--primary-color);
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: var(--font-semi-bold);
}

.expertise-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ===== BRAND SLIDER ===== */
.brand-track {
    animation-duration: 30s;
}

.brand-item {
    margin: 0 var(--mb-1);
}

.brand-item img {
    height: 80px;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: none;
}

.brand-item:hover img {
    opacity: 1;
    transform: scale(1.15);
}

/* ===== AWARDS SECTION ===== */
.awards-grid {
    display: grid;
    gap: var(--mb-2);
    margin-top: var(--mb-2);
}

.award-item {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: var(--mb-2);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-align: center;
}

.award-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.award-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--mb-1);
    color: white;
    font-size: 1.5rem;
}

.award-item h4 {
    color: var(--primary-color);
    margin-bottom: var(--mb-0-5);
    font-weight: var(--font-semi-bold);
}

.award-item p {
    color: var(--text-light);
    font-size: var(--small-font-size);
}

/* ===== 3D EFFECTS ===== */
.card-3d {
    perspective: 1000px;
}

.card-3d-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-3d:hover .card-3d-inner {
    transform: rotateY(5deg) rotateX(5deg);
}

/* ===== PROJECT OVERLAY EFFECTS ===== */
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--mb-1-5);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.3) 100%);
    color: white;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    backdrop-filter: blur(2px);
    z-index: 10;
    pointer-events: auto;
}

.project-card:hover .project-overlay {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* Ensure overlay is visible on hover across all screen sizes */
@media (max-width: 768px) {
    .project-card:hover .project-overlay {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }
    
    .project-overlay {
        padding: var(--mb-1);
    }
    
    .project-overlay h3 {
        font-size: 1.1rem;
    }
    
    .project-overlay .project-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Ensure project image scales slightly on hover for better effect */
.project-card:hover .project-image img {
    transform: scale(1.05);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Project tags styling within overlay */
.project-overlay .project-tags {
    margin-bottom: var(--mb-1);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-overlay .project-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: var(--font-medium);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Project title styling within overlay */
.project-overlay h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: var(--mb-1);
    font-weight: var(--font-semi-bold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Project button styling within overlay */
.project-overlay .project-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: var(--font-semi-bold);
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.project-overlay .project-btn:hover {
    background: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Enhanced hover effects for project cards */
.project-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Ensure smooth transitions for all project card elements */
.project-card * {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== CATEGORY SPECIFIC STYLING ===== */
[data-category="residential"] .project-type {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

[data-category="cultural"] .project-type {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.1);
}

[data-category="hospitality"] .project-type {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

[data-category="education"] .project-type {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.1);
}

[data-category="retail"] .project-type {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.1);
}

[data-category="healthcare"] .project-type {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

[data-category="mixed-use"] .project-type {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

[data-category="office"] .project-type {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

[data-category="public"] .project-type {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.1);
}

/* ===== EDUCATION SECTION ===== */
.education-item {
    margin-bottom: var(--mb-2);
    padding-bottom: var(--mb-1-5);
    border-bottom: 1px solid var(--border-color);
}

.education-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.education-item h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: var(--mb-0-5);
    font-weight: var(--font-semi-bold);
}

.education-item p {
    color: var(--text-dark);
    margin-bottom: var(--mb-0-5);
}

.education-year {
    color: var(--accent-color);
    font-weight: var(--font-medium);
    font-size: 0.95rem;
}

/* ===== LOADING STATES ===== */
button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

.loading-state {
    opacity: 0.6;
    pointer-events: none;
}

/* ===== SPECIAL ANIMATIONS ===== */
@keyframes blueprintFlow {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(10px) translateY(-5px);
    }
    50% {
        transform: translateX(-5px) translateY(10px);
    }
    75% {
        transform: translateX(5px) translateY(5px);
    }
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(0, 136, 100, 0.1) 50%, transparent 60%);
    animation: blueprintFlow 15s ease-in-out infinite;
}

/* ===== DECORATIVE BACKGROUNDS ===== */
.featured-projects:before,
.awards-section:before,
.brands-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 136, 100, 0.02) 0%, transparent 50%);
    z-index: -1;
    clip-path: polygon(0 0, 100% 5%, 100% 95%, 0 100%);
}


.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--mb-0-5);
    color: var(--text-dark);
    font-weight: var(--font-semi-bold);
}

.project-info p {
    color: var(--text-light);
    margin-bottom: var(--mb-1-5);
    line-height: 1.6;
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== FOCUS STATES FOR ACCESSIBILITY ===== */
.btn:focus,
.filter-btn:focus,
.nav-links a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
        --border-color: #000000;
    }
}