/* ==========================================================================
   VIROTECH BRANDING SYSTEM & CUSTOM DESIGN STYLES
   ========================================================================== */

/* --- Font Declarations --- */

@font-face {
    font-family: 'GE SS Two';
    src: url('../assets/fonts/GE SS Two Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'GE SS Two';
    src: url('../assets/fonts/GE SS Two Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'GE SS Two';
    src: url('../assets/fonts/GE SS Two Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Bebas Neue';
    src: url('../assets/fonts/BebasNeue-Regular[1].otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Bell Gothic Std';
    src: url('../assets/fonts/BELL.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Bell Gothic Std';
    src: url('../assets/fonts/BELLB.TTF') format('truetype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'Bell Gothic Std';
    src: url('../assets/fonts/BELLGOTHICSTD-BLACK.OTF') format('opentype');
    font-weight: 900;
    font-style: normal;
}
html {
    scroll-behavior: smooth;
}
/* --- Core Variables --- */
:root {
    --bg-primary: #0a0f1d;
    --bg-secondary: #0e1629;
    --bg-tertiary: #131d36;
    --accent-gold: #c5a880;
    --accent-gold-rgb: 197, 168, 128;
    --accent-cyan: #00d2ff;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --glass-bg: rgba(10, 15, 29, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Layout */
    --navbar-height: 80px;
    --container-width: 1200px;
}

/* --- Base Rules & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Bell Gothic Std', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* RTL / Arabic overrides */
body.ar-mode {
    font-family: 'GE SS Two', sans-serif;
}

/* Bilingual text visibility logic */
body.ar-mode .lang-en {
    display: none !important;
}
body:not(.ar-mode) .lang-ar {
    display: none !important;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    font-weight: normal;
    color: var(--text-primary);
    line-height: 1.2;
}

body.ar-mode h1, 
body.ar-mode h2, 
body.ar-mode h3, 
body.ar-mode h4, 
body.ar-mode h5, 
body.ar-mode h6 {
    font-family: 'GE SS Two', sans-serif;
    letter-spacing: 0;
}

/* --- Layout Components --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Common Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--text-primary);
}

body.ar-mode .section-title {
    font-size: 2.2rem;
    font-weight: 700;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-cyan));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Glassmorphism Cards */
.card {
    background: rgba(19, 29, 54, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 168, 128, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: 'Bell Gothic Std', sans-serif;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-size: 0.95rem;
    border: none;
}

body.ar-mode .btn {
    font-family: 'GE SS Two', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), #b39366);
    color: #0c0f16;
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.2);
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(197, 168, 128, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* --- Frosted Glass Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    height: 70px;
    background: rgba(10, 15, 29, 0.95);
}

.nav-container {
    max-width: var(--container-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 48px;
    display: block;
    transition: var(--transition-smooth);
}

.navbar.scrolled .logo-img {
    height: 40px;
}

/* Header logo container with white background, similar to footer */
.logo-white {
    background: #fff;
    padding: 4px 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 8px 12px;
    transition: var(--transition-smooth);
    border-radius: 4px;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.03);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switch-btn {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: bold;
    transition: var(--transition-smooth);
}

.lang-switch-btn:hover {
    border-color: var(--accent-gold);
    background: rgba(197, 168, 128, 0.1);
}

/* Hamburger mobile menu button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* --- Hero / Cover Section --- */
.hero-section {
    min-height: 100vh;
    padding-top: calc(var(--navbar-height) + 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 15, 29, 0.85), rgba(10, 15, 29, 0.55));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 24px;
    z-index: 2;
}

body.ar-mode .hero-content {
    padding: 0 24px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
    text-transform: uppercase;
}

body.ar-mode .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
}

.accent-text {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- About Section --- */
.about-section {
    background-color: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--accent-gold);
    line-height: 1.7;
}

.about-text p:not(.lead-text) {
    color: var(--text-secondary);
}

.about-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: #ffffff;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-img {
    max-width: 85%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
    transition: var(--transition-smooth);
}

.about-image-wrapper:hover .about-img {
    transform: scale(1.05);
    filter: brightness(1);
}

/* --- Vision & Mission Section --- */
.vision-mission-section {
    background-color: var(--bg-primary);
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.vm-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    background: #ffffff; /* Solid white background as requested */
    color: #0c0f16;       /* Dark text for legibility on white */
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.vm-image-container {
    width: 120px;
    height: 180px; /* Taller to fit vertical graphic + text */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 10px;
}

.vm-illustration {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #0c0f16; /* Dark title color */
}

body.ar-mode .card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.card-content p {
    color: #475569; /* Slate grey body text on white background */
    font-size: 0.95rem;
}

.card-bg-decoration {
    position: absolute;
    bottom: -10px;
    right: -10px;
    height: 120px;
    opacity: 0.15;
    pointer-events: none;
}

body.ar-mode .card-bg-decoration {
    right: auto;
    left: -10px;
}

.card-bg-decoration img {
    height: 100%;
    width: auto;
}



/* --- Strategic Objectives Section --- */
.objectives-section {
    background-color: var(--bg-tertiary);
    background-image: url('../assets/images/sections/BG from prsntation.png');
    background-size: cover;
    background-position: center;
}

.objectives-section .section-title {
    color: var(--bg-primary); /* Dark title for high contrast on light background */
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.obj-card {
    background: rgba(10, 15, 29, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition-smooth);
}

.obj-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    background: rgba(10, 15, 29, 0.85);
}

.obj-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.obj-card:hover .obj-icon {
    transform: scale(1.15) rotate(5deg);
}

.obj-card h4 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

body.ar-mode .obj-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
}

.obj-card p {
    font-size: 0.85rem;
    color: var(--text-secondary); /* High contrast light text on dark card background */
}

/* --- Services Section --- */
.services-section {
    background-color: var(--bg-primary);
}

.services-intro {
    max-width: 800px;
    margin: -20px auto 50px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.services-visual-container {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    border-radius: 12px;
    overflow: hidden;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
}

.services-lifecycle-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
}

.services-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 65px;
}

.service-card {
    background: rgba(14, 22, 41, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 35px 25px;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-cyan));
}

.service-card h3 {
    font-size: 1.6rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

body.ar-mode .service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.services-umbrella {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
    background: rgba(197, 168, 128, 0.05);
    border: 1px solid rgba(197, 168, 128, 0.15);
    border-radius: 12px;
    padding: 40px;
}

.umbrella-text h3 {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

body.ar-mode .umbrella-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
}

.umbrella-text p {
    color: var(--text-secondary);
}

.umbrella-img {
    max-height: 250px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    justify-self: center;
}

/* --- Methodology Section --- */
.methodology-section {
    background-color: var(--bg-secondary);
}

.methodology-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.methodology-visual {
    position: relative;
    border-radius: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
}

.methodology-img {
    width: 100%;
    height: auto;
    display: block;
}

.methodology-arrows-img {
    max-height: 380px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 20px auto 0;
    opacity: 0.9;
}

.methodology-text {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.methodology-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.m-step {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 20px;
    transition: var(--transition-smooth);
}

.m-step:hover {
    background: rgba(197, 168, 128, 0.05);
    border-color: rgba(197, 168, 128, 0.25);
    transform: translateX(10px);
}

body.ar-mode .m-step:hover {
    transform: translateX(-10px);
}

.step-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    color: var(--accent-gold);
    line-height: 1;
}

body.ar-mode .step-num {
    font-family: 'GE SS Two', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
}

.step-content h5 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

body.ar-mode .step-content h5 {
    font-size: 1.1rem;
    font-weight: 700;
}

.step-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.methodology-secondary-visuals {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
}

.methodist-map-img {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 12px;
    background-color: #ffffff; /* Solid white background for contrast */
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
}

.methodology-full-visual {
    margin-top: 60px;
    background: rgba(19, 29, 54, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.methodology-full-visual h3 {
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 25px;
}

body.ar-mode .methodology-full-visual h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.full-visual-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.methodology-img {
    width: 100%;
    min-width: 800px;
    height: auto;
    display: block;
}

/* --- Market Presence Section --- */
.market-section {
    background-color: var(--bg-tertiary);
    background-image: url('../assets/images/sections/BG websti.png');
    background-size: cover;
    background-position: center;
}

.market-section .section-title {
    color: var(--bg-primary); /* Dark title for high contrast on light bg */
}

.market-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.tab-btn {
    background: rgba(10, 15, 29, 0.03);
    color: #334155;
    border: 1px solid rgba(10, 15, 29, 0.15);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    border-color: var(--bg-primary);
    color: var(--bg-primary);
    background: rgba(10, 15, 29, 0.07);
}

.tab-btn.active {
    background: var(--accent-gold);
    color: #0c0f16;
    border-color: var(--accent-gold);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

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

.market-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.market-visual {
    background: rgba(10, 15, 29, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
}

.market-map-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.market-description {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.market-description h3 {
    font-size: 2.2rem;
    color: #8c7355; /* Darker premium gold for high contrast on light bg */
}

body.ar-mode .market-description h3 {
    font-size: 1.7rem;
    font-weight: 700;
}

.market-description p {
    color: #1e293b; /* Dark slate for high contrast readability */
}

.market-data-img {
    width: 100%;
    min-width: 800px;
    height: auto;
    display: block;
    border-radius: 6px;
}

.market-full-data {
    margin-top: 40px;
    background: rgba(19, 29, 54, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
}

/* --- Team Section --- */
.team-section {
    background-color: var(--bg-secondary);
}

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

.team-card {
    background: rgba(10, 15, 29, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.member-image {
    width: 100%;
    aspect-ratio: 1.6;
    overflow: hidden;
    background: #0d1222;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition-smooth);
}

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

.member-info {
    padding: 20px;
}

.member-info h3 {
    font-size: 1.5rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

body.ar-mode .member-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.member-info .role {
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 12px;
}

body.ar-mode .member-info .role {
    font-size: 0.78rem;
}

.member-info .bio {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- Clients Section --- */
.clients-section {
    background-color: var(--bg-primary);
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.clients-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.clients-marquee-wrapper::before,
.clients-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-primary), transparent);
}

.clients-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-primary), transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scrollMarquee 25s linear infinite;
    gap: 60px;
    align-items: center;
}

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

.client-logo-item {
    width: 120px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.client-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1) brightness(0.7) opacity(0.6);
    transition: var(--transition-smooth);
}

.client-logo-item:hover img {
    filter: grayscale(0) brightness(1) opacity(1);
    transform: scale(1.05);
}

/* --- Contact Us Section --- */
.contact-section {
    background-color: var(--bg-secondary);
    background-image: url('../assets/images/sections/CONTACT US.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.contact-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 29, 0.9);
    z-index: -1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-info-panel h3 {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

body.ar-mode .contact-info-panel h3 {
    font-size: 1.6rem;
    font-weight: 700;
}

.contact-desc {
    color: var(--text-secondary);
    margin-bottom: 35px;
}

.contact-details-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-details-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-details-list li .icon {
    font-size: 1.5rem;
    background: rgba(197, 168, 128, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.contact-details-list li h5 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

body.ar-mode .contact-details-list li h5 {
    font-size: 1rem;
    font-weight: 700;
}

.contact-details-list li p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-details-list li a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-details-list li a:hover {
    color: var(--accent-gold);
}

.contact-form-panel {
    background: rgba(10, 15, 29, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.08);
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* --- Footer --- */
.footer {
    background-color: #070a14;
    padding: 60px 0 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 40px;
    align-items: flex-start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo-container {
    background-color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.footer-logo {
    height: 35px;
    display: block;
    object-fit: contain;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-links h4,
.footer-legal h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

body.ar-mode .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.footer-legal {
    font-size: 0.8rem;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.ar-mode .footer-legal {
    text-align: left;
}

/* --- Responsive Adjustments (Media Queries) --- */

@media (max-width: 1199px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        justify-content: center;
    }
}

/* Intermediate desktop screen adjustment to prevent nav items wrapping */
@media (min-width: 1024px) and (max-width: 1249px) {
    .nav-menu ul {
        gap: 12px;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
}

@media (max-width: 1023px) {
    :root {
        --navbar-height: 70px;
    }
    
    /* Mobile Navbar toggles at tablet size */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background: rgba(10, 15, 29, 0.98);
        border-top: 1px solid var(--glass-border);
        transition: var(--transition-smooth);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 999;
    }
    
    body.ar-mode .nav-menu {
        left: auto;
        right: -100%;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    body.ar-mode .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: calc(var(--navbar-height) + 20px);
        padding-bottom: 60px;
        justify-content: center;
    }
    
    .hero-content {
        padding: 0 24px;
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    body.ar-mode .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        padding: 0 24px;
        max-width: 500px;
    }
    
    .about-grid,
    .vision-mission-grid,
    .services-umbrella,
    .methodology-grid,
    .market-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .umbrella-img {
        max-width: 200px;
    }
    
    .objectives-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand, .footer-logo-container {
        align-self: center;
    }
    
    .footer-legal {
        text-align: center;
    }
    
    body.ar-mode .footer-legal {
        text-align: center;
    }
}

@media (max-width: 767px) {
    .objectives-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 479px) {
    .hero-title {
        font-size: 2.3rem;
    }
    
    body.ar-mode .hero-title {
        font-size: 2.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .objectives-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
}
/* --- SCROLL ANIMATIONS --- */

/* Base setup for any animated element */
.scroll-animate {
    opacity: 0 !important;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1) !important, opacity 1.3s ease !important;
    will-change: transform, opacity;
}

/* Directional starting points */
.scroll-animate.from-right {
    transform: translateX(100px) !important;
}

.scroll-animate.from-left {
    transform: translateX(-100px) !important;
}

.scroll-animate.from-bottom {
    transform: translateY(80px) !important;
}

/* Active state triggered by main.js */
.scroll-animate.viewed {
    opacity: 1 !important;
    transform: translateX(0) translateY(0) !important;
}

/* Stagger grid items cleanly so they don't slide in all at once */
.objectives-grid .obj-card:nth-child(even),
.services-cards-grid .service-card:nth-child(2) {
    transition-delay: 0.15s;
}

/* Objectives grid — 3-column stagger by position in row */
.objectives-grid .obj-card:nth-child(3n+2) {
    transition-delay: 0.1s;
}
.objectives-grid .obj-card:nth-child(3n+3) {
    transition-delay: 0.2s;
}

/* Service cards stagger */
.services-cards-grid .service-card:nth-child(1) { transition-delay: 0s; }
.services-cards-grid .service-card:nth-child(2) { transition-delay: 0.12s; }
.services-cards-grid .service-card:nth-child(3) { transition-delay: 0.24s; }

/* Methodology steps stagger */
.m-step:nth-child(2) { transition-delay: 0.1s; }
.m-step:nth-child(3) { transition-delay: 0.2s; }
.m-step:nth-child(4) { transition-delay: 0.3s; }