/* OFUQ AI — Part 2: Nav, Hero, Components, Responsive (Redesigned) */

/* 8. Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: all var(--duration-md) var(--ease);
    border-bottom: 1px solid transparent;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-bevel), 0 4px 30px rgba(0, 0, 0, 0.12);
    height: calc(var(--nav-height) - 8px);
}

.navbar .container {
    height: 100%;
}

.nav-logo img {
    height: 52px;
    width: auto;
    transition: filter var(--duration-lg) var(--ease);
}

/* Dynamic filter to make light logo look dark gold on light theme */
[data-theme="light"] .nav-logo img {
    filter: brightness(0.25) contrast(1.15) sepia(0.3) saturate(1.5);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all var(--duration) var(--ease);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--bg-glass-light);
}

.nav-links a.active {
    color: var(--gold);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle,
.lang-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    font-size: 0.95rem;
    box-shadow: var(--glass-bevel), var(--glass-shadow);
    transition: all var(--duration) var(--ease);
}

.theme-toggle:hover,
.lang-toggle:hover {
    border-color: var(--glass-border-hover);
    background: rgba(213, 178, 114, 0.08);
    box-shadow: var(--glass-bevel), var(--glass-shadow-hover);
    transform: translateY(-1.5px);
}

.lang-toggle {
    width: auto;
    padding: 0 14px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* Scroll Progress Line */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    width: 100%;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: width 0.08s linear;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--duration-md) var(--ease);
    border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform var(--duration-lg) var(--ease), opacity var(--duration-lg) var(--ease);
    padding: 32px;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 10px;
    transition: color var(--duration) var(--ease);
}

.mobile-menu a:hover {
    color: var(--gold);
}

/* 9. Hero */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-height) + 60px) 0 80px;
    max-width: 100vw;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    /* Behind all content but in front of body background */
    pointer-events: none;
    opacity: 0.65;
    transition: opacity var(--duration-lg) var(--ease);
    max-width: none;
    height: 100%;
    width: 100%;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(ellipse 60% 40% at 50% -10%, rgba(213, 178, 114, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 10% 60%, rgba(30, 58, 138, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 90% 70%, rgba(213, 178, 114, 0.04) 0%, transparent 50%);
}

[data-theme="light"] .hero-gradient {
    background:
        radial-gradient(ellipse 60% 40% at 50% -10%, rgba(213, 178, 114, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 10% 60%, rgba(30, 58, 138, 0.03) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 32px;
}


.hero-logo {
    height: 160px;
    width: auto;
    margin: 0 auto 32px;
    display: block;
    filter: drop-shadow(0 4px 24px rgba(213, 178, 114, 0.2));
    animation: fadeInUp 0.8s var(--ease) both;
}

[data-theme="light"] .hero-logo {
    filter: brightness(0.2) contrast(1.2) sepia(0.3) saturate(1.5) drop-shadow(0 4px 16px rgba(0, 0, 0, 0.1));
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: rgba(213, 178, 114, 0.06);
    border: 1px solid rgba(213, 178, 114, 0.12);
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 32px;
    font-weight: 600;
    animation: fadeInUp 0.8s var(--ease) both;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse 2s ease infinite;
}

.hero h1 {
    margin-bottom: 24px;
    animation: fadeInUp 0.8s var(--ease) 0.1s both;
    line-height: 1.18;
}

.hero p {
    font-size: 1.15rem;
    max-width: 620px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s var(--ease) 0.2s both;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease) 0.3s both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 680px;
    margin: 80px auto 0;
    animation: fadeInUp 0.8s var(--ease) 0.5s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold);
    display: block;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-stat .label-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
    display: block;
    font-weight: 500;
}

/* 10. Trusted Partners */
.trusted-section {
    padding: 48px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.trusted-section p {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
}

.trusted-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    opacity: 0.65;
    transition: opacity var(--duration) var(--ease);
}

.trusted-logos:hover {
    opacity: 0.85;
}

.trusted-logos span {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
}

/* 11. Service Card Specifics */
.service-card {
    cursor: default;
}

.service-card h4 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.65;
}

.service-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 700;
    transition: gap var(--duration) var(--ease);
}

.service-card:hover .card-link {
    gap: 12px;
}

/* 12. Projects */
.project-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 22px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--duration-md) var(--ease);
    background: var(--bg-glass-light);
    font-weight: 600;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--gold);
    color: #030712;
    border-color: var(--gold);
    transform: translateY(-1px);
}

.project-card {
    padding: 0;
    overflow: hidden;
}

.project-card .project-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.project-card .project-info {
    padding: 28px;
}

.project-card .project-info h4 {
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.project-card .project-info p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.project-tag {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    background: rgba(213, 178, 114, 0.08);
    color: var(--gold);
    border: 1px solid rgba(213, 178, 114, 0.12);
    font-weight: 600;
}

/* 13. CEO Profile Card (World-Class UI/UX Redesign) */
.ceo-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    background-color: var(--bg-card);
    background-image:
        radial-gradient(at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(213, 178, 114, 0.05) 0%, transparent 80%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.015'/%3E%3C/svg%3E");
    backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
    border: 1px solid rgba(213, 178, 114, 0.15);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--glass-bevel), var(--glass-shadow);
    transition: all var(--duration-md) var(--ease);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .ceo-card {
    background-image:
        radial-gradient(at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(213, 178, 114, 0.015) 0%, transparent 80%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.01'/%3E%3C/svg%3E");
    border-color: rgba(213, 178, 114, 0.25);
}

.ceo-card:hover {
    border-color: rgba(213, 178, 114, 0.4);
    box-shadow: 0 20px 45px rgba(213, 178, 114, 0.06), var(--glass-bevel), var(--glass-shadow-hover);
}

/* Corner sci-fi line markers */
.card-corner-accent {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid var(--gold);
    pointer-events: none;
    opacity: 0.4;
    transition: all var(--duration) var(--ease);
}

.ceo-card:hover .card-corner-accent {
    opacity: 0.95;
}

.card-corner-accent.top-left {
    top: 12px;
    left: 12px;
    border-right: none;
    border-bottom: none;
}

.card-corner-accent.top-right {
    top: 12px;
    right: 12px;
    border-left: none;
    border-bottom: none;
}

.card-corner-accent.bottom-left {
    bottom: 12px;
    left: 12px;
    border-right: none;
    border-top: none;
}

.card-corner-accent.bottom-right {
    bottom: 12px;
    right: 12px;
    border-left: none;
    border-top: none;
}

/* CEO Portrait Layout */
.ceo-image-container {
    position: relative;
    padding: 10px;
    border: 1px solid rgba(213, 178, 114, 0.12);
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.25);
}

.ceo-image-frame-gold {
    position: absolute;
    inset: -4px;
    border: 1px solid var(--gold);
    border-radius: 24px;
    opacity: 0.15;
    transition: opacity 0.5s var(--ease);
    pointer-events: none;
}

.ceo-card:hover .ceo-image-frame-gold {
    opacity: 0.45;
}

.ceo-image {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(213, 178, 114, 0.2);
    box-shadow: var(--shadow-lg);
}

.ceo-image-scanline {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(213, 178, 114, 0.02) 50%, rgba(0, 0, 0, 0.04) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.5;
}

.ceo-tech-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 3;
    background: rgba(3, 7, 18, 0.85);
    border: 1px solid rgba(213, 178, 114, 0.35);
    color: var(--gold);
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

[dir="ltr"] .ceo-tech-tag {
    right: auto;
    left: 12px;
}

.ceo-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: top;
    transition: transform var(--duration-lg) var(--ease);
    display: block;
}

.ceo-card:hover .ceo-image img {
    transform: scale(1.035) rotate(0.5deg);
}

/* Info Details */
.ceo-name-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    background: rgba(213, 178, 114, 0.08);
    padding: 3px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(213, 178, 114, 0.15);
}

.ceo-name {
    font-size: 2.2rem;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--text-primary);
}

.ceo-title {
    color: var(--gold);
    font-size: 0.98rem;
    margin-bottom: 24px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ceo-bio {
    margin-bottom: 28px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Cinematic blockquote */
.ceo-quote-container {
    position: relative;
    margin-bottom: 32px;
    background: rgba(213, 178, 114, 0.02);
    border-right: 3px solid var(--gold);
    padding: 22px 26px;
    border-radius: 4px var(--radius-md) var(--radius-md) 4px;
    border-top: 1px solid rgba(213, 178, 114, 0.06);
    border-bottom: 1px solid rgba(213, 178, 114, 0.06);
    border-left: 1px solid rgba(213, 178, 114, 0.06);
    overflow: hidden;
}

[dir="ltr"] .ceo-quote-container {
    border-right: 1px solid rgba(213, 178, 114, 0.06);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-md) 4px 4px var(--radius-md);
}

.quote-giant-mark {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 9rem;
    color: var(--gold);
    opacity: 0.05;
    position: absolute;
    top: -45px;
    right: 15px;
    pointer-events: none;
    line-height: 1;
}

[dir="ltr"] .quote-giant-mark {
    right: auto;
    left: 15px;
}

.ceo-quote {
    font-style: italic;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.75;
    position: relative;
    z-index: 2;
}

/* Modern achievements capsule grid */
.ceo-achievements-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 28px;
}

[data-theme="light"] .ceo-achievements-row {
    border-top-color: rgba(0, 0, 0, 0.06);
}

.achievement-capsule {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 14px 20px;
    border-radius: 14px;
    transition: all 0.3s var(--ease);
}

[data-theme="light"] .achievement-capsule {
    background: rgba(0, 0, 0, 0.01);
    border-color: rgba(0, 0, 0, 0.03);
}

.ceo-card:hover .achievement-capsule {
    background: rgba(213, 178, 114, 0.02);
    border-color: rgba(213, 178, 114, 0.1);
}

.achievement-capsule:hover {
    background: rgba(213, 178, 114, 0.06) !important;
    border-color: rgba(213, 178, 114, 0.25) !important;
    transform: translateY(-3px);
}

.capsule-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(213, 178, 114, 0.08);
    border: 1px solid rgba(213, 178, 114, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.1rem;
    transition: all 0.3s var(--ease);
}

.achievement-capsule:hover .capsule-icon {
    background: var(--gold);
    color: #030712;
    box-shadow: 0 0 12px rgba(213, 178, 114, 0.45);
}

.capsule-data {
    display: flex;
    flex-direction: column;
}

.capsule-data .num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1.25;
}

.capsule-data .txt {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 14. Academy Preview Card */
.academy-preview {
    background-color: var(--bg-card);
    background-image:
        radial-gradient(at 50% 100%, rgba(213, 178, 114, 0.04) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.018'/%3E%3C/svg%3E");
    backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    text-align: center;
    box-shadow: var(--glass-bevel), var(--glass-shadow);
    transition: all var(--duration-md) var(--ease);
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .academy-preview {
    background-image:
        radial-gradient(at 50% 100%, rgba(213, 178, 114, 0.04) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.012'/%3E%3C/svg%3E");
}

.academy-preview:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--glass-bevel), var(--glass-shadow-hover);
}

.academy-preview .academy-logo-img {
    height: 96px;
    margin: 0 auto 24px;
    position: relative;
    filter: drop-shadow(0 4px 12px rgba(213, 178, 114, 0.15));
}

/* 15. Call To Action (CTA) Section */
.cta-section {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border-radius: var(--radius-xl);
    padding: 80px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(213, 178, 114, 0.15);
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section h2,
.cta-section p {
    color: #030712;
    position: relative;
    z-index: 2;
}

.cta-section p {
    font-weight: 500;
    margin-top: 8px;
}

.cta-section .btn {
    background: #030712;
    color: var(--gold);
    margin-top: 32px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.cta-section .btn:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    background: #0b0f19;
}

/* 16. Contact Page Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.8);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 0.95rem;
    box-shadow: var(--glass-bevel), var(--glass-shadow);
    transition: all var(--duration) var(--ease);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--glass-border-hover);
    box-shadow: var(--glass-bevel), 0 0 0 4px rgba(213, 178, 114, 0.12), var(--glass-shadow-hover);
    background: rgba(213, 178, 114, 0.02);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease);
}

.contact-info-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.contact-info-card .icon-box {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: rgba(213, 178, 114, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px solid rgba(213, 178, 114, 0.12);
}

.contact-info-card h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-info-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 17. Course & Learning Path Cards */
.course-card h4 {
    margin-bottom: 8px;
}

.course-card p {
    font-size: 0.92rem;
}

.course-meta {
    display: flex;
    gap: 16px;
    margin-top: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.course-meta-item {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.course-level {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.course-level.beginner {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.course-level.intermediate {
    background: rgba(234, 179, 8, 0.12);
    color: #facc15;
}

.course-level.advanced {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

[data-theme="light"] .course-level.beginner {
    background: rgba(34, 197, 94, 0.08);
    color: #15803d;
}

[data-theme="light"] .course-level.intermediate {
    background: rgba(234, 179, 8, 0.08);
    color: #a16207;
}

[data-theme="light"] .course-level.advanced {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
}

/* 18. Blog Card Layout */
.blog-card .blog-image {
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.blog-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: inline-block;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
    display: block;
}

/* 19. Academy Instructor */
.instructor-card {
    text-align: center;
}

.instructor-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 18px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.instructor-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 20. Redesigned Timeline */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 50%;
    width: 2px;
    background: var(--border-color);
    transform: translateX(50%);
}

[dir="ltr"] .timeline::before {
    left: 50%;
    right: auto;
}

.timeline-item {
    position: relative;
    padding: 24px 0;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    position: absolute;
    top: 32px;
    right: 50%;
    transform: translateX(50%);
    z-index: 2;
    box-shadow: 0 0 16px var(--gold-glow);
}

[dir="ltr"] .timeline-dot {
    left: 50%;
    right: auto;
}

.timeline-content {
    width: 44%;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--duration-md) var(--ease);
}

.timeline-content:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

[dir="ltr"] .timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

[dir="ltr"] .timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    margin-left: 0;
}

.timeline-year {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 6px;
}

.timeline-content h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 21. Footer */
.footer {
    padding: 80px 0 32px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 56px;
}

.footer-brand .footer-logo {
    height: 42px;
    margin-bottom: 12px;
    transition: filter var(--duration-lg) var(--ease);
}

[data-theme="light"] .footer-logo {
    filter: brightness(0.25) contrast(1.15) sepia(0.3) saturate(1.5);
}

.footer-brand p {
    font-size: 0.9rem;
    max-width: 280px;
    margin-top: 12px;
}

.footer h4 {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer ul a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer ul a:hover {
    color: var(--gold);
    transform: translateX(-4px);
}

[dir="ltr"] .footer ul a:hover {
    transform: translateX(4px);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--duration) var(--ease);
}

.footer-social a:hover {
    border-color: var(--border-hover);
    color: var(--gold);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.newsletter-form input {
    flex: 1;
    padding: 11px 16px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    outline: none;
    color: var(--text-primary);
    transition: all var(--duration) var(--ease);
}

.newsletter-form input:focus {
    border-color: var(--gold);
    background: var(--bg-elevated);
}

.newsletter-form button {
    padding: 11px 22px;
    border-radius: var(--radius-full);
    background: var(--gold);
    color: #030712;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all var(--duration) var(--ease);
}

.newsletter-form button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* 22. Page Header */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(213, 178, 114, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.page-header h1 {
    position: relative;
    margin-bottom: 16px;
}

.page-header p {
    position: relative;
    max-width: 580px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* 23. Loading Screen (Cinematic Liquid Glass Preloader) */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #030712;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), visibility 0.8s;
    overflow: hidden;
}

.loading-screen.hidden {
    opacity: 0;
    transform: scale(1.05);
    /* Gorgeous zoom-out reveal effect */
    visibility: hidden;
    pointer-events: none;
}

/* Background animated liquid glow blobs for the loader */
.loader-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(3, 7, 18, 0.5), #030712);
}

.loader-blob {
    position: absolute;
    width: clamp(250px, 45vw, 600px);
    height: clamp(250px, 45vw, 600px);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    mix-blend-mode: screen;
    pointer-events: none;
    animation: floatBlobs 12s infinite alternate ease-in-out;
}

.loader-blob-1 {
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

.loader-blob-2 {
    background: radial-gradient(circle, #1e3a8a 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -6s;
}

@keyframes floatBlobs {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    100% {
        transform: translate(80px, 50px) scale(1.15) rotate(90deg);
    }
}

/* Frosted Glass Loader Card Container - Made fully transparent and seamless */
.loader-card {
    position: relative;
    z-index: 2;
    width: min(90%, 540px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.4s var(--ease);
}

.loader-logo {
    width: 300px;
    height: auto;
    margin-bottom: 40px;
    animation: loadPulse 2s ease infinite;
}

/* Premium Tagline with Flanking Elegant Lines */
.loader-tagline {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(213, 178, 114, 0.15);
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    justify-content: center;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.loader-tagline::before,
.loader-tagline::after {
    content: '';
    height: 1px;
    width: 60px;
    background: var(--gold);
    opacity: 0.45;
    transition: opacity 0.3s ease;
}

@media (max-width: 480px) {
    .loader-logo {
        width: 180px;
        margin-bottom: 30px;
    }

    .loader-tagline {
        font-size: 0.92rem;
        gap: 12px;
        white-space: normal;
        text-align: center;
    }

    .loader-tagline::before,
    .loader-tagline::after {
        width: 30px;
    }
}

/* 24. Values Card Layout */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card {
    text-align: center;
    padding: 32px;
}

.value-card .value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(213, 178, 114, 0.1), rgba(213, 178, 114, 0.02));
    border: 1px solid rgba(213, 178, 114, 0.1);
    font-size: 1.5rem;
    transition: all var(--duration-md) var(--ease);
}

.value-card:hover .value-icon {
    background: linear-gradient(135deg, rgba(213, 178, 114, 0.2), rgba(213, 178, 114, 0.05));
    border-color: rgba(213, 178, 114, 0.25);
    box-shadow: 0 0 16px rgba(213, 178, 114, 0.1);
}

.value-card h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.value-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* 25. Story Page layout */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

/* 26. Vision & Mission */
.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* 27. Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.6);
    }
}

@keyframes loadPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Swiper Coverflow Slider Premium Styling */
.services-swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 90px;
    /* Space for the bottom navigation/pagination bar */
    overflow: visible;
    /* Let glassmorphic card shadows/glows bleed out beautifully - overridden on mobile */
}

.services-swiper .swiper-slide {
    width: 380px;
    max-width: 85%;
    height: auto;
    opacity: 0.45;
    filter: blur(2px);
    transform: scale(0.9);
    transition: opacity var(--duration-md) var(--ease), filter var(--duration-md) var(--ease), transform var(--duration-md) var(--ease);
}

/* Depth-of-Field visual focus on active slide */
.services-swiper .swiper-slide-active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

.services-swiper .swiper-slide .service-card {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* Customized Premium Swiper Control Bar */
.services-swiper .swiper-pagination {
    bottom: 16px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    pointer-events: auto;
}

.services-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--text-secondary);
    opacity: 0.3;
    transition: all var(--duration) var(--ease);
    border-radius: 50%;
}

.services-swiper .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: var(--radius-full);
    background: var(--gold) !important;
    opacity: 1 !important;
    box-shadow: 0 0 12px rgba(213, 178, 114, 0.4);
}

/* Glassmorphic Navigation Buttons styling */
.swiper-button-left-custom,
.swiper-button-right-custom {
    position: absolute;
    bottom: 0px;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    background: var(--bg-glass-light);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
    transition: all var(--duration-md) var(--ease);
}

.swiper-button-left-custom {
    left: calc(50% - 90px);
}

.swiper-button-right-custom {
    right: calc(50% - 90px);
}

.swiper-button-left-custom:hover,
.swiper-button-right-custom:hover {
    background: rgba(213, 178, 114, 0.1);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 15px rgba(213, 178, 114, 0.25);
    transform: translateY(-2px);
}

.swiper-button-left-custom:active,
.swiper-button-right-custom:active {
    transform: translateY(0) scale(0.95);
}

/* Extra premium touch: disabled arrows style */
.swiper-button-disabled {
    opacity: 0.35 !important;
    pointer-events: none;
    cursor: not-allowed;
}

/* Premium "Show More" Services & Projects Button styling */
.btn-services-more {
    gap: 12px;
    position: relative;
    font-weight: 500;
    border-radius: var(--radius-full) !important;
    padding: 14px 40px !important;
    letter-spacing: 0.5px;
    overflow: hidden;
    transition: all var(--duration-md) var(--ease) !important;
}

/* Arrow pseudo-element that is aware of LTR/RTL reading direction */
.btn-services-more::after {
    content: '←';
    display: inline-block;
    margin-right: 4px;
    font-family: inherit;
    transition: transform var(--duration-sm) var(--ease);
}

:root[dir="ltr"] .btn-services-more::after {
    content: '→';
    margin-right: 0;
    margin-left: 4px;
}

.btn-services-more:hover {
    background: linear-gradient(135deg, rgba(213, 178, 114, 0.15), rgba(213, 178, 114, 0.05)) !important;
    border-color: var(--gold) !important;
    box-shadow: 0 0 20px rgba(213, 178, 114, 0.25) !important;
    transform: translateY(-3px) !important;
}

.btn-services-more:hover::after {
    transform: translateX(-5px);
}

:root[dir="ltr"] .btn-services-more:hover::after {
    transform: translateX(5px);
}

@media (max-width: 480px) {
    .services-swiper {
        padding-bottom: 80px;
    }

    .services-swiper .swiper-slide {
        width: 85vw;
        max-width: 290px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }
}

/* 28. Responsive System */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1.2fr;
    }

    .ceo-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 36px 24px;
        gap: 36px;
    }

    .ceo-image-container {
        max-width: 340px;
        margin: 0 auto;
        width: 100%;
    }

    .ceo-image img {
        height: 320px;
    }

    .ceo-quote-container {
        border-right: none;
        border-left: none;
        border-top: 2px solid var(--gold);
        border-bottom: 2px solid var(--gold);
        border-radius: 8px;
        padding: 18px 16px;
    }

    [dir="ltr"] .ceo-quote-container {
        border-left: none;
        border-right: none;
    }

    .quote-giant-mark {
        right: 50%;
        transform: translateX(50%);
        top: -24px;
    }

    [dir="ltr"] .quote-giant-mark {
        left: 50%;
        transform: translateX(-50%);
    }

    .ceo-achievements-row {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
        padding-top: 24px;
    }

    .achievement-capsule {
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .services-swiper {
        overflow: hidden !important;
    }

    #services-preview {
        overflow: hidden;
    }

    .section {
        overflow: hidden;
        max-width: 100vw;
    }

    .hero-badge {
        padding: 6px 16px;
        font-size: 0.78rem;
        gap: 8px;
        max-width: 100%;
        white-space: normal;
        text-align: center;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    .hero {
        padding: calc(var(--nav-height) + 20px) 0 40px;
    }

    .hero-content {
        padding: 0 16px;
        max-width: 100%;
    }

    .hero-logo {
        height: 90px;
        margin-bottom: 20px;
    }

    .hero h1 {
        margin-bottom: 16px;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .hero-stats {
        margin-top: 36px;
        gap: 20px;
    }

    .hero-stat .number {
        font-size: 1.8rem;
    }

    .hero-stat .label-text {
        font-size: 0.78rem;
    }

    /* Mobile Typography adjustments for Thmanyah Mursalah letters */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        line-height: 1.4 !important;
        /* Breathing room for Arabic diacritics & swashes */
        overflow-wrap: break-word;
    }

    h1 {
        font-size: clamp(2rem, 8vw, 2.8rem) !important;
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
    }

    h3 {
        font-size: clamp(1.2rem, 5vw, 1.5rem) !important;
    }

    /* Glassmorphic Card optimizations for Mobile */
    .card,
    .ceo-card {
        padding: 24px 20px !important;
        border-radius: var(--radius-md) !important;
    }

    /* Container adjustments for Mobile */
    .container {
        padding: 0 16px !important;
    }

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .ceo-achievements-row {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .vision-mission-grid {
        grid-template-columns: 1fr;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .academy-preview {
        padding: 48px 24px;
    }

    .cta-section {
        padding: 48px 24px;
    }

    .timeline::before {
        right: 20px;
    }

    [dir="ltr"] .timeline::before {
        left: 20px;
        right: auto;
    }

    .timeline-dot {
        right: 20px;
    }

    [dir="ltr"] .timeline-dot {
        left: 20px;
        right: auto;
    }

    .timeline-content {
        width: calc(100% - 48px);
        margin-right: 0 !important;
    }

    [dir="ltr"] .timeline-content {
        margin-left: 48px !important;
        margin-right: 0 !important;
    }

    .page-header {
        padding: 130px 0 64px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: clamp(1.8rem, 9vw, 2.3rem) !important;
        line-height: 1.35 !important;
    }

    h2 {
        font-size: clamp(1.4rem, 7vw, 1.7rem) !important;
    }

    .card,
    .ceo-card {
        padding: 20px 16px !important;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-top: 24px;
    }

    .btn {
        white-space: normal;
        text-align: center;
    }

    .section-heading .label {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* 29. Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(213, 178, 114, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(213, 178, 114, 0.35);
}

::selection {
    background: rgba(213, 178, 114, 0.25);
    color: var(--text-primary);
}

/* Swiper Projects coverflow slider layout */
.projects-swiper {
    width: 100%;
    padding-top: 30px;
    padding-bottom: 90px;
    overflow: visible;
}

.projects-swiper .swiper-slide {
    width: 360px;
    max-width: 85%;
    height: auto;
    opacity: 0.35;
    filter: blur(2px);
    transform: scale(0.9);
    transition: opacity var(--duration-md) var(--ease), filter var(--duration-md) var(--ease), transform var(--duration-md) var(--ease);
}

.projects-swiper .swiper-slide-active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

/* Glassmorphic Navigation Buttons for projects swiper */
.swiper-button-left-projects-custom,
.swiper-button-right-projects-custom {
    position: absolute;
    bottom: 0px;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-full);
    background: var(--bg-glass-light);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10;
    transition: all var(--duration-md) var(--ease);
}

.swiper-button-left-projects-custom {
    left: calc(50% - 90px);
}

.swiper-button-right-projects-custom {
    right: calc(50% - 90px);
}

.swiper-button-left-projects-custom:hover,
.swiper-button-right-projects-custom:hover {
    background: rgba(213, 178, 114, 0.1);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 15px rgba(213, 178, 114, 0.25);
    transform: translateY(-2px);
}

.swiper-button-left-projects-custom:active,
.swiper-button-right-projects-custom:active {
    transform: translateY(0) scale(0.95);
}

.projects-swiper .swiper-pagination-projects {
    bottom: 16px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    pointer-events: auto;
    position: absolute;
    z-index: 10;
}

.projects-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--text-secondary);
    opacity: 0.3;
    transition: all var(--duration) var(--ease);
    border-radius: 50%;
}

.projects-swiper .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: var(--radius-full);
    background: var(--gold) !important;
    opacity: 1 !important;
    box-shadow: 0 0 8px var(--gold);
}

/* ==========================================================================
   PROJECTS GAME CARD PRESET STYLING
   ========================================================================== */

.project-game-card {
    --rarity-color: var(--gold);
    --rarity-color-rgb: 213, 178, 114;
    position: relative;
    width: 100%;
    background: rgba(15, 15, 20, 0.7);
    /* Obsidian Glass background */
    border-radius: 20px;
    border: 1px solid rgba(var(--rarity-color-rgb), 0.18);
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Hover & Active Card Glowing Aura */
.swiper-slide-active .project-game-card:hover,
.grid .project-game-card:hover {
    border-color: rgba(var(--rarity-color-rgb), 0.8);
    box-shadow: 0 15px 35px rgba(var(--rarity-color-rgb), 0.15),
        0 0 30px rgba(var(--rarity-color-rgb), 0.08),
        inset 0 0 15px rgba(var(--rarity-color-rgb), 0.05);
    transform: translateY(-8px);
}

/* Inner Frame of Trading Cards */
.card-inner-frame {
    margin: 8px;
    padding: 16px;
    border: 1px solid rgba(var(--rarity-color-rgb), 0.15);
    border-radius: 14px;
    background: rgba(10, 10, 15, 0.45);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

/* Card Top Bar (Category & Stars) */
.card-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-class-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--rarity-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-class-badge i {
    font-size: 0.8rem;
}

.card-rarity-stars {
    display: flex;
    gap: 2px;
    font-size: 0.7rem;
    color: var(--rarity-color);
}

.card-rarity-stars i.gold-star {
    color: var(--rarity-color);
    text-shadow: 0 0 6px rgba(var(--rarity-color-rgb), 0.6);
}

/* Card Image/Media Area */
.card-image-area {
    height: 170px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(var(--proj-color-rgb, var(--rarity-color-rgb)), 0.25);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
    background: var(--proj-bg, linear-gradient(135deg, #1a3a5c, #0a1628));
}

/* Holographic Grid Pattern Overlay */
.card-tech-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--proj-color-rgb, var(--rarity-color-rgb)), 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--proj-color-rgb, var(--rarity-color-rgb)), 0.04) 1px, transparent 1px);
    background-size: 14px 14px;
    opacity: 0.8;
    mix-blend-mode: screen;
}

/* Pulsing Center Icon Wrapper */
.card-icon-wrapper {
    position: relative;
    z-index: 2;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(var(--proj-color-rgb, var(--rarity-color-rgb)), 0.08);
    border: 1px solid rgba(var(--proj-color-rgb, var(--rarity-color-rgb)), 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(var(--proj-color-rgb, var(--rarity-color-rgb)), 0.12);
    transition: transform 0.6s var(--ease);
}

.card-icon-wrapper svg.icon-svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--proj-color, var(--rarity-color));
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 4px var(--proj-color, var(--rarity-color)));
}

.project-game-card:hover .card-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* Dynamic Holographic Sweep Shimmer Animation */
.card-holographic-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg,
            transparent 0%,
            rgba(var(--proj-color-rgb, var(--rarity-color-rgb)), 0.02) 20%,
            rgba(255, 255, 255, 0.07) 35%,
            rgba(255, 255, 255, 0.18) 50%,
            rgba(255, 255, 255, 0.07) 65%,
            rgba(var(--proj-color-rgb, var(--rarity-color-rgb)), 0.02) 80%,
            transparent 100%);
    background-size: 300% 300%;
    background-position: 0% 0%;
    transition: background-position 0s;
    z-index: 3;
    mix-blend-mode: overlay;
    pointer-events: none;
    opacity: 0.7;
}

.project-game-card:hover .card-holographic-shine {
    background-position: 300% 300%;
    transition: background-position 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}



/* Body and Typography */
.card-body-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-project-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    transition: color 0.3s;
}

.project-game-card:hover .card-project-title {
    color: var(--rarity-color);
}

.card-project-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    height: 60px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Character Game Stats Panel (Grid columns) */
.card-game-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(var(--rarity-color-rgb), 0.18);
    border: 1px solid rgba(var(--rarity-color-rgb), 0.22);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 18px;
}

.stat-box {
    background: rgba(10, 10, 15, 0.7);
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: background 0.3s;
}

.project-game-card:hover .stat-box {
    background: rgba(15, 15, 22, 0.6);
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--rarity-color);
    white-space: nowrap;
}

/* Activation CTA Spell */
.card-activation-link {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px;
    background: rgba(var(--rarity-color-rgb), 0.08);
    border: 1px solid rgba(var(--rarity-color-rgb), 0.22);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s var(--ease);
    text-decoration: none;
    text-align: center;
}

.project-game-card:hover .card-activation-link {
    background: var(--rarity-color);
    color: #030712 !important;
    box-shadow: 0 4px 15px rgba(var(--rarity-color-rgb), 0.25);
    border-color: var(--rarity-color);
}

/* Responsive Overrides for Projects Swiper */
@media (max-width: 768px) {
    .projects-swiper {
        overflow: hidden !important;
    }

    #projects-preview {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .projects-swiper {
        padding-bottom: 80px;
    }

    .projects-swiper .swiper-slide {
        width: 85vw;
        max-width: 290px;
    }
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   LIGHT THEME GAME CARDS HIGH-FIDELITY OVERRIDES
   ========================================================================== */
[data-theme="light"] .project-game-card {
    background: rgba(255, 255, 255, 0.72);
    /* Milky glass Alabaster */
    border-color: rgba(213, 178, 114, 0.28);
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 0.8),
        0 1px 3px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .swiper-slide-active .project-game-card:hover,
[data-theme="light"] .grid .project-game-card:hover {
    border-color: rgba(213, 178, 114, 0.65);
    box-shadow:
        0 20px 40px rgba(213, 178, 114, 0.12),
        0 0 25px rgba(213, 178, 114, 0.05),
        inset 0 0 10px rgba(213, 178, 114, 0.03);
}

[data-theme="light"] .card-inner-frame {
    background: rgba(255, 255, 255, 0.48);
    border-color: rgba(213, 178, 114, 0.18);
}

[data-theme="light"] .card-image-area {
    border-color: rgba(213, 178, 114, 0.2);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .card-icon-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(213, 178, 114, 0.35);
    box-shadow: 0 4px 12px rgba(213, 178, 114, 0.1);
}

[data-theme="light"] .stat-box {
    background: rgba(255, 255, 255, 0.82);
}

[data-theme="light"] .project-game-card:hover .stat-box {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .stat-value {
    color: var(--gold-dark);
    /* Deeper, legible gold */
}

[data-theme="light"] .card-game-stats {
    background: rgba(213, 178, 114, 0.25);
    border-color: rgba(213, 178, 114, 0.28);
}

[data-theme="light"] .card-activation-link {
    background: rgba(213, 178, 114, 0.1);
    border-color: rgba(213, 178, 114, 0.25);
    color: var(--text-primary);
}

[data-theme="light"] .project-game-card:hover .card-activation-link {
    background: var(--gold);
    color: #030712 !important;
    box-shadow: 0 4px 12px rgba(213, 178, 114, 0.3);
    border-color: var(--gold);
}

/* Specific styling for background tech grids in light mode */
[data-theme="light"] .card-tech-grid {
    opacity: 0.35;
}

/* ==========================================================================
   PROJECT-SPECIFIC BRAND COLOR SIGNATURE DECK
   ========================================================================== */

/* 1. DermAI (Blue) */
.card-dermai {
    --proj-color: #3b82f6;
    --proj-color-rgb: 59, 130, 246;
    --proj-bg: linear-gradient(135deg, #0f1e3d, #081124);
}

[data-theme="light"] .card-dermai {
    --proj-color: #1d4ed8;
    --proj-color-rgb: 29, 78, 216;
    --proj-bg: linear-gradient(135deg, #eff6ff, #dbeafe);
}

/* 2. AI Trends Intelligence (Amber Gold) */
.card-trends {
    --proj-color: #f59e0b;
    --proj-color-rgb: 245, 158, 11;
    --proj-bg: linear-gradient(135deg, #2d1d03, #150d01);
}

[data-theme="light"] .card-trends {
    --proj-color: #d97706;
    --proj-color-rgb: 217, 119, 6;
    --proj-bg: linear-gradient(135deg, #fffbeb, #fef3c7);
}

/* 3. Taskora (Indigo) */
.card-taskora {
    --proj-color: #6366f1;
    --proj-color-rgb: 99, 102, 241;
    --proj-bg: linear-gradient(135deg, #1a1b4b, #0c0d24);
}

[data-theme="light"] .card-taskora {
    --proj-color: #4f46e5;
    --proj-color-rgb: 79, 70, 229;
    --proj-bg: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}

/* 4. Uniweb (Teal) */
.card-uniweb {
    --proj-color: #14b8a6;
    --proj-color-rgb: 20, 184, 166;
    --proj-bg: linear-gradient(135deg, #073832, #031b18);
}

[data-theme="light"] .card-uniweb {
    --proj-color: #0d9488;
    --proj-color-rgb: 13, 148, 136;
    --proj-bg: linear-gradient(135deg, #f0fdfa, #ccfbf1);
}

/* 5. Lisan (Slate Blue) */
.card-lisan {
    --proj-color: #06b6d4;
    --proj-color-rgb: 6, 182, 212;
    --proj-bg: linear-gradient(135deg, #093740, #041a1f);
}

[data-theme="light"] .card-lisan {
    --proj-color: #0891b2;
    --proj-color-rgb: 8, 145, 178;
    --proj-bg: linear-gradient(135deg, #ecfeff, #cffafe);
}

/* 6. Alaadin Academy (Sky/Teal Slate) */
.card-academy {
    --proj-color: #0ea5e9;
    --proj-color-rgb: 14, 165, 233;
    --proj-bg: linear-gradient(135deg, #063147, #031924);
}

[data-theme="light"] .card-academy {
    --proj-color: #0284c7;
    --proj-color-rgb: 2, 132, 199;
    --proj-bg: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}

/* 7. Trendy (Amber/Gold Warm) */
.card-trendy {
    --proj-color: #eab308;
    --proj-color-rgb: 234, 179, 8;
    --proj-bg: linear-gradient(135deg, #2e2302, #161101);
}

[data-theme="light"] .card-trendy {
    --proj-color: #ca8a04;
    --proj-color-rgb: 202, 138, 4;
    --proj-bg: linear-gradient(135deg, #fef9c3, #fef08a);
}

/* 8. Fhnh (Violet/Purple) */
.card-fhnh {
    --proj-color: #a855f7;
    --proj-color-rgb: 168, 85, 247;
    --proj-bg: linear-gradient(135deg, #2d0c4e, #160627);
}

[data-theme="light"] .card-fhnh {
    --proj-color: #9333ea;
    --proj-color-rgb: 147, 51, 234;
    --proj-bg: linear-gradient(135deg, #f3e8ff, #e9d5ff);
}

/* 9. NoteSphere (Deep Indigo Purple) */
.card-notesphere {
    --proj-color: #8b5cf6;
    --proj-color-rgb: 139, 92, 246;
    --proj-bg: linear-gradient(135deg, #24134b, #110925);
}

[data-theme="light"] .card-notesphere {
    --proj-color: #7c3aed;
    --proj-color-rgb: 124, 58, 237;
    --proj-bg: linear-gradient(135deg, #faf5ff, #f3e8ff);
}

/* =============================================
   TEAM SECTION — Premium Glassmorphic Design
   ============================================= */

/* Team Grid Layout */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Team Card Overrides */
.team-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--duration) var(--ease),
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
}

.team-card:hover {
  transform: translateY(-6px);
}

/* Portrait / Avatar Wrapper */
.team-portrait-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(135deg, rgba(213, 178, 114, 0.05), rgba(26, 58, 92, 0.08));
}

.team-portrait-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-lg) var(--ease);
}

.team-card:hover .team-portrait-wrapper img {
  transform: scale(1.05);
}

/* Sci-fi Scanline Overlay */
.ceo-image-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(213, 178, 114, 0.02) 3px,
    rgba(213, 178, 114, 0.02) 4px
  );
  mix-blend-mode: overlay;
}

/* CEO Name Badge */
.ceo-name-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(213, 178, 114, 0.08);
  border: 1px solid rgba(213, 178, 114, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Department Badge styles */
.badge-dept {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 5;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.5px;
  border: 1px solid transparent;
}

[dir="ltr"] .badge-dept {
  right: auto;
  left: 12px;
}

/* Leadership theme */
.badge-leadership {
  background: rgba(213, 178, 114, 0.12);
  color: var(--gold);
  border-color: rgba(213, 178, 114, 0.3);
}

/* Backend Theme (Blue) */
.badge-backend {
  background: rgba(37, 99, 235, 0.12);
  color: #60a5fa;
  border-color: rgba(37, 99, 235, 0.3);
}
.team-card[data-category="backend"]:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08), var(--glass-bevel);
}

/* API Theme (Cyan) */
.badge-api {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.3);
}
.team-card[data-category="api"]:hover {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.08), var(--glass-bevel);
}

/* Frontend Theme (Purple/Pink) */
.badge-frontend {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.3);
}
.team-card[data-category="frontend"]:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.08), var(--glass-bevel);
}

/* Mobile Theme (Magenta/Pink) */
.badge-mobile {
  background: rgba(236, 72, 153, 0.12);
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.3);
}
.team-card[data-category="mobile"]:hover {
  border-color: rgba(236, 72, 153, 0.45);
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.08), var(--glass-bevel);
}

/* AI Theme (Emerald Green) */
.badge-ai {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}
.team-card[data-category="ai"]:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.08), var(--glass-bevel);
}

/* Ops Theme (Amber/Orange) */
.badge-ops {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}
.team-card[data-category="ops"]:hover {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.08), var(--glass-bevel);
}

/* Integration Theme (Pink/Rose) */
.badge-integration {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.3);
}
.team-card[data-category="integration"]:hover {
  border-color: rgba(244, 63, 94, 0.45);
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.08), var(--glass-bevel);
}

/* Info Details */
.team-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 20px 24px 24px;
}

.member-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  transition: color var(--duration) var(--ease);
}

.team-card:hover .member-name {
  color: var(--gold);
}

.member-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  opacity: 0.8;
  letter-spacing: 0.2px;
}

.member-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(213, 178, 114, 0.3), transparent);
  margin: 14px 0;
  width: 100%;
}

[dir="ltr"] .member-divider {
  background: linear-gradient(90deg, transparent, rgba(213, 178, 114, 0.3));
}

.member-resp {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Special Main Card styles (Founder / CEO Spotlight) */
.team-card.special-main {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border: 1px solid rgba(213, 178, 114, 0.25);
  background: linear-gradient(135deg,
    rgba(213, 178, 114, 0.04),
    rgba(26, 58, 92, 0.06));
}

.team-card.special-main:hover {
  border-color: rgba(213, 178, 114, 0.5);
  box-shadow: 0 16px 48px rgba(213, 178, 114, 0.1), var(--glass-bevel);
}

.team-card.special-main .team-portrait-wrapper {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  aspect-ratio: auto;
  min-height: 320px;
}

[dir="ltr"] .team-card.special-main .team-portrait-wrapper {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.team-card.special-main .team-info {
  padding: 32px 36px;
  justify-content: center;
}

.team-card.special-main .ceo-name-badge {
  margin-bottom: 4px;
}

/* =============================================
   TEAM SECTION — Responsive Overrides
   ============================================= */

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .team-card.special-main {
    grid-template-columns: 220px 1fr;
  }

  .team-card.special-main .team-portrait-wrapper {
    min-height: 260px;
  }
}

@media (max-width: 768px) {
  .team-card.special-main {
    grid-template-columns: 1fr;
  }

  .team-card.special-main .team-portrait-wrapper {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    min-height: 280px;
    aspect-ratio: 4 / 3;
  }

  [dir="ltr"] .team-card.special-main .team-portrait-wrapper {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .team-card.special-main .team-info {
    padding: 24px;
  }

  .team-card.special-main .ceo-name-badge {
    font-size: 0.7rem;
  }
}

@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}