/* assets/css/style.css */

@font-face {
    font-family: 'Dusha';
    src: url('../font/Dusha FIFA World Cup.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Revoxa';
    src: url('../font/revoxa/Revoxa-Regular.ttf') format('truetype'),
         url('../font/revoxa/Revoxa-Regular.otf') format('opentype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Revoxa-Cut1';
    src: url('../font/revoxa/Revoxa-Cut1.ttf') format('truetype'),
         url('../font/revoxa/Revoxa-Cut1.otf') format('opentype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Revoxa-Cut2';
    src: url('../font/revoxa/Revoxa-Cut2.ttf') format('truetype'),
         url('../font/revoxa/Revoxa-Cut2.otf') format('opentype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Revoxa-Strip';
    src: url('../font/revoxa/Revoxa-Strip.ttf') format('truetype'),
         url('../font/revoxa/Revoxa-Strip.otf') format('opentype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Google Sans Flex';
    src: url('../font/Google_Sans_Flex/GoogleSansFlex-VariableFont_GRAD,ROND,opsz,slnt,wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Material Symbols Outlined';
    src: url('../font/MaterialSymbolsOutlined.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

/* نمایش پیام های وضعیت */

/* Global Reset & Base Setup */
:root {
    --bg-color: #07070a;
    --text-color: #ffffff;
    --text-muted: #7f8087;
    --accent-color: #ffffff;
    --accent-glow: rgba(255, 255, 255, 0.05);
    --border-color: #1a1b24;
    --font-en: 'Google Sans Flex', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-ar: 'Vazirmatn', Tahoma, Arial, sans-serif;
    --font-title: 'Google Sans Flex', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-en);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}

/* RTL overrides for Arabic */
body.lang-ar {
    font-family: var(--font-ar);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Custom ambient backgrounds */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(7,7,10,0) 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(79, 117, 255, 0.08) 0%, rgba(7,7,10,0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Site Header */
.site-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 1000;
    background-color: rgba(7, 7, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid transparent;
    border-bottom-color: rgba(255, 255, 255, 0.03);
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    top: 1.25rem;
    width: calc(100% - 4rem);
    max-width: 1300px;
    background-color: rgba(15, 25, 45, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(52, 152, 219, 0.1);
    border-radius: 50px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    padding: 0.8rem 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation Links */
.main-nav ul {
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-color);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    gap: 1rem;
}

.desktop-only-lang {
    display: flex;
}

.mobile-only-lang {
    display: none;
}

.lang-btn {
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-muted) !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-block;
}

.lang-btn:hover {
    color: #ffffff !important;
}

.lang-btn.active {
    color: #ffffff !important;
    background: transparent !important;
    font-weight: 700;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 2rem;
}

.hero-content {
    width: 100%;
    max-width: 100%;
    padding: 0 2rem;
    z-index: 10;
}

.hero-title {
    font-family: 'Revoxa', 'Cormorant Garamond', 'Outfit', serif;
    font-size: clamp(1.8rem, 5.8vw, 6.5rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-indent: 0.1em; /* Offset letter-spacing for exact centering */
    line-height: 1.05;
    margin-bottom: 2rem;
    text-transform: uppercase;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

body.lang-ar .hero-title {
    font-family: var(--font-ar);
    letter-spacing: 0;
    font-weight: 700;
}

.hero-subtitle {
    font-family: 'Dusha', var(--font-en);
    font-size: clamp(0.6rem, 1.3vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
    max-width: 100%;
    margin: 0 auto;
    white-space: nowrap;
}

body.lang-ar .hero-subtitle {
    font-family: var(--font-ar);
    letter-spacing: 0.02em;
    font-weight: 600;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.scroll-text {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: #ffffff;
    animation: scroll-anim 2s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scroll-anim {
    0% { top: -20px; }
    100% { top: 60px; }
}

/* Portfolio Section */
.portfolio-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 3rem;
}

.portfolio-header {
    margin-bottom: 4rem;
}

.section-tag {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.section-title.page-header-title {
    font-family: var(--font-title);
    font-size: clamp(3.2rem, 7vw, 6rem) !important;
    font-weight: 300 !important;
    text-transform: none !important;
    letter-spacing: -0.02em !important;
}

body.lang-ar .section-title,
body.lang-ar .section-title.page-header-title {
    font-family: var(--font-ar) !important;
}

/* Filter Navigation */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    border: 1px solid rgba(52, 152, 219, 0.12);
    background: rgba(30, 48, 80, 0.06);
    padding: 0.6rem 1.8rem;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    color: #ffffff;
    background: rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.3);
}

.filter-btn.active {
    color: #ffffff;
    border-color: rgba(52, 152, 219, 0.5);
    background: rgba(52, 152, 219, 0.25);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

/* Project Card Redesign */
.project-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    aspect-ratio: auto;
    overflow: visible;
    text-decoration: none;
    color: inherit;
    gap: 0.8rem;
    transition: var(--transition-smooth);
    border-radius: 8px;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: #0f1015;
    border: 1px solid rgba(52, 152, 219, 0.1);
    border-radius: 8px;
}

.link-card-wrapper {
    border: 1px dashed rgba(52, 152, 219, 0.12);
    border-radius: 8px;
    background: rgba(30, 48, 80, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 0.5rem;
}

.project-card:hover .link-card-wrapper {
    border-color: rgba(52, 152, 219, 0.3);
    background: rgba(40, 64, 100, 0.15);
}

.project-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.2rem 0;
    text-align: left;
}

body.lang-ar .project-card-info {
    text-align: right;
}

.project-card-title {
    font-family: var(--font-en);
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

body.lang-ar .project-card-title {
    font-family: var(--font-ar);
}

.project-card-subtitle {
    font-family: var(--font-en);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

body.lang-ar .project-card-subtitle {
    font-family: var(--font-ar);
}

.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

body.lang-ar .project-card-tags {
    justify-content: flex-start;
}

.project-tag-pill {
    font-family: var(--font-en);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid rgba(52, 152, 219, 0.12);
    border-radius: 6px;
    padding: 0.2rem 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(30, 48, 80, 0.06);
    transition: var(--transition-smooth);
    white-space: nowrap;
}

body.lang-ar .project-tag-pill {
    font-family: var(--font-ar);
    letter-spacing: 0;
}

.project-card:hover .project-tag-pill {
    color: #ffffff;
    border-color: rgba(52, 152, 219, 0.45);
    background: rgba(40, 64, 100, 0.25);
}

.project-image,
.project-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-image {
    opacity: 1;
    filter: blur(0px) brightness(1);
    transform: scale(1);
    z-index: 1;
}

.project-image-hover {
    opacity: 0;
    filter: blur(0px) grayscale(0%) brightness(100%);
    transform: scale(1.03);
    z-index: 2;
}

.project-card:hover .project-image {
    opacity: 0;
    transform: scale(1.05);
}

.project-card:hover .project-image-hover {
    opacity: 1;
    transform: scale(1.01);
}

/* Overlay branding bar */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    pointer-events: none;
}

body.lang-ar .project-overlay {
    direction: ltr;
}

.project-meta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 4;
    transition: var(--transition-smooth);
    opacity: 0;
}

.project-card:hover .project-meta {
    opacity: 1;
}

.project-meta h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.project-meta span {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Inner calligraphy SVG style */
.calligraphy-logo {
    display: flex;
    align-items: center;
}

/* Link Card Text */
.link-card-content {
    text-align: center;
}

.link-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.link-card-sub {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Site Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 3rem;
    background: #050508;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    direction: ltr; /* Keeps Instagram on the left, Behance on the right globally */
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.footer-icon-link {
    color: var(--text-muted);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-icon-link:hover {
    color: var(--text-color);
}

.footer-icon-link:hover .footer-behance-img {
    opacity: 1 !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .header-container, .portfolio-section, .footer-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Mobile menu toggler styling */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1100;
    padding: 5px;
}

.mobile-nav-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .logo {
        order: 1;
    }

    .desktop-only-lang {
        display: none !important;
    }

    .mobile-only-lang {
        display: flex !important;
        margin-top: 2.5rem;
        justify-content: center;
        width: 100%;
    }

    .mobile-nav-toggle {
        display: flex;
        order: 3;
    }

    .main-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background-color: rgba(7, 7, 10, 0.97) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999 !important;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-15px);
        transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 0 !important;
    }

    .main-nav.active {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .main-nav a {
        font-size: 1.25rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        font-weight: 600;
    }
    .header-container {
        padding: 0 1.5rem;
    }
    .portfolio-section {
        padding: 3rem 1.2rem;
    }
    .portfolio-grid:not(.slider-mode) {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    body:not(.page-index) .portfolio-section {
        margin-top: 5.5rem !important; /* Clears fixed site-header on mobile */
    }
    .portfolio-filters {
        margin-bottom: 2rem;
    }
    .portfolio-header {
        margin-bottom: 2rem;
    }
    .site-header {
        padding: 1rem 0;
    }
    .site-header.scrolled {
        top: 0.75rem;
        width: calc(100% - 2rem);
        padding: 0.6rem 0;
        border-radius: 30px;
    }
    .site-header.scrolled .main-nav {
        /* overridden by fixed mobile layout */
    }
    .hero {
        min-height: 70vh;
        padding: 0 1.2rem;
    }
    .hero-content {
        padding: 0;
    }
    .hero-title {
        font-size: clamp(1.2rem, 6.5vw, 2.6rem) !important;
        white-space: nowrap !important;
        text-align: center;
        width: 100%;
        margin-bottom: 0.8rem;
    }
    .hero-subtitle {
        font-size: clamp(0.7rem, 3.5vw, 0.95rem) !important;
        letter-spacing: 0.1em;
        white-space: normal !important;
        text-align: center;
        max-width: 90%;
        margin: 0 auto;
        line-height: 1.4;
    }
    .scroll-indicator {
        bottom: 1.5rem;
    }
    .section-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }
    .section-title.page-header-title {
        font-size: clamp(1.8rem, 8.8vw, 4.0rem) !important;
        white-space: nowrap !important;
    }
    .project-meta h3 {
        font-size: 1.2rem;
    }
    .project-meta span {
        font-size: 0.7rem;
    }
    .link-card-title {
        font-size: 1.2rem;
    }
    .link-card-sub {
        font-size: 0.7rem;
    }
    .contact-details-card {
        padding: 2rem 1.2rem;
        gap: 1.5rem;
    }
    .contact-group-email {
        font-size: clamp(1.1rem, 5.2vw, 1.4rem);
    }
    .contact-group-phone {
        font-size: 0.9rem;
    }
    .contact-group-location {
        font-size: 1rem;
    }
    .contact-social-list a {
        font-size: 0.95rem;
    }
    .services-grid {
        gap: 2rem;
    }
    .service-card {
        padding: 1.2rem;
        gap: 0.8rem;
    }
    .service-number {
        font-size: clamp(1.8rem, 4vw, 2.4rem);
    }
    .service-title-text {
        font-size: 1.3rem;
    }
    .service-desc-text {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    .studio-intro-box {
        margin-top: 2rem;
        margin-bottom: 2.5rem;
    }
    .studio-intro-heading {
        font-size: clamp(1rem, 3.8vw, 1.3rem) !important;
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }
    .studio-intro-text {
        font-size: 0.85rem !important;
        line-height: 1.5;
    }
    .leader-card {
        padding: 1rem;
        gap: 1rem;
    }
    .leader-name {
        font-size: 0.95rem;
    }
    .leader-role {
        font-size: 0.65rem;
    }
    .leader-links a {
        font-size: 0.75rem;
    }
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Studio Page Styles */
.studio-intro-box {
    background: none;
    border: none;
    padding: 0;
    margin-top: 3rem;
    margin-bottom: 5rem;
}

.studio-intro-heading {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 500;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: 2rem;
}

.studio-intro-text {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.7;
    color: #ffffff;
    max-width: 800px;
}

.leadership-section {
    margin-top: 4rem;
}

.leadership-tag {
    margin-bottom: 2rem;
    letter-spacing: 0.2em;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.leader-card {
    display: flex;
    align-items: center;
    background: rgba(30, 48, 80, 0.12);
    border: 1px solid rgba(52, 152, 219, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 8px;
    gap: 2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.leader-card:hover {
    background: rgba(40, 64, 100, 0.25);
    border-color: rgba(52, 152, 219, 0.45);
    transform: translateY(-2px);
}

.leader-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.leader-card:hover .leader-image {
    filter: grayscale(0%);
}

.leader-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.leader-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
}

.leader-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.leader-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.leader-links a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid transparent;
}

.leader-links a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* RTL overrides for Studio page */
body.lang-ar .studio-intro-box,
body.lang-ar .leader-card {
    text-align: right;
}

/* Mobile adjustments for Studio */
@media (max-width: 768px) {
    .portfolio-header {
        text-align: center;
    }
    .leadership-tag {
        text-align: center;
    }
    .studio-intro-box {
        padding: 0;
    }
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .leader-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    body.lang-ar .leader-card {
        flex-direction: column;
        text-align: center;
    }
    body.lang-ar .leader-links {
        justify-content: center;
    }
    .leader-links {
        justify-content: center;
    }
}

/* Contact Details Card Styling (Get in Touch) */
.contact-details-card {
    background: rgba(30, 48, 80, 0.12);
    border: 1px solid rgba(52, 152, 219, 0.18);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    max-width: 900px;
    width: 100%;
}

.contact-card-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
}

.contact-group-tag {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

.contact-group-email {
    font-size: 1.6rem;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-group-email:hover {
    color: rgba(255, 255, 255, 0.85);
}

.contact-group-phone {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-en);
    font-weight: 400;
}

.contact-group-location {
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 400;
}

.contact-social-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
}

.contact-social-list a {
    font-size: 1.05rem;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 0.15rem;
    transition: all 0.3s ease;
    font-weight: 400;
}

.contact-social-list a:hover {
    color: rgba(255, 255, 255, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.8);
    transform: translateX(3px);
}

/* RTL alignments for contact page */
body.lang-ar .contact-card-group,
body.lang-ar .contact-social-list {
    align-items: flex-start;
}

@media (max-width: 768px) {
    .contact-details-card {
        padding: 2rem 1.5rem;
        gap: 2rem;
    }
}

/* Services Page Grid and Card Styling */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.service-card {
    background: rgba(30, 48, 80, 0.12);
    border: 1px solid rgba(52, 152, 219, 0.18);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2rem 2.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card:hover {
    background: rgba(40, 64, 100, 0.25);
    border-color: rgba(52, 152, 219, 0.45);
    transform: translateY(-2px);
}

.service-number {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-en);
}

.service-title-text {
    font-size: 1.8rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.service-desc-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .service-card {
        padding: 1.5rem;
    }
}

/* Typography Refinements */
.section-title.thinner-title {
    font-weight: 300;
}



body.lang-ar .section-title.page-header-title {
    font-family: var(--font-ar) !important;
    font-weight: 300 !important;
}

/* Slider Controls - Hidden because slider is mobile-only and uses native touch-swipe */
.slider-nav-arrows {
    display: none !important;
}

/* Slider layout mode for portfolio - ONLY active on mobile (<= 768px) */
@media (max-width: 768px) {
    .portfolio-grid.slider-mode {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding-bottom: 1.5rem;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }

    .portfolio-grid.slider-mode::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }

    .portfolio-grid.slider-mode .project-card {
        flex: 0 0 85%; /* 85% width so next card is partially visible */
        width: auto;
        scroll-snap-align: start;
        aspect-ratio: auto;
    }
}

/* BlurFade Animation Style */
.blur-fade {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(6px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, filter 0.4s ease-out;
    will-change: opacity, transform, filter;
}

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

.blur-fade[data-letters-split="true"] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
}

.char-span, .word-span {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px) translateZ(0);
    filter: blur(4px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.blur-fade.visible .char-span,
.blur-fade.visible .word-span {
    opacity: 1;
    transform: translateY(0) translateZ(0);
    filter: blur(0px);
}

/* Contact Card Sub-elements Styling */
.contact-card-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-group-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
}

.contact-group-email {
    font-family: var(--font-en);
    font-size: clamp(1.4rem, 4.2vw, 2.5rem);
    font-weight: 300;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: var(--transition-smooth);
    word-break: break-all;
    width: fit-content;
}

.contact-group-email:hover {
    color: rgba(255, 255, 255, 0.7);
}

.contact-group-phone {
    font-family: var(--font-en);
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 500;
}

.contact-group-location {
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 400;
    line-height: 1.5;
}

.contact-social-list {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.contact-social-list a {
    font-family: var(--font-en);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 2px;
}

.contact-social-list a:hover {
    color: rgba(255, 255, 255, 0.7);
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

