/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --dark-bg: #0f0f23;
    --darker-bg: #0a0a1a;
    --card-bg: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
    --border-gradient: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
    --vh: 1vh; /* Fallback for viewport height */
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enhanced container with better mobile padding */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px, 4vw, 20px);
}

/* Enhanced Navigation with better mobile UX */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(20px); /* Safari support */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px, 4vw, 20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: clamp(60px, 8vh, 70px);
}

.logo-text {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    user-select: none;
}

.labs {
    font-weight: 400;
    color: #6366f1;
    -webkit-text-fill-color: #6366f1;
    background: none;
    opacity: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Enhanced hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hamburger animation */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
        position: fixed;
        left: 0;
        top: 60px;
        flex-direction: column;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border-top: 1px solid rgba(99, 102, 241, 0.2);
        z-index: 999;
        height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .hamburger {
        display: flex;
    }
}

/* Enhanced Hero Section with better mobile optimization */
.hero {
    min-height: calc(100vh - 70px);
    min-height: calc(var(--vh, 1vh) * 100 - 70px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: clamp(80px, 10vh, 120px) 0 clamp(40px, 5vh, 60px);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    will-change: transform;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

.floating-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(0, -20px, 0) rotate(180deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px, 4vw, 20px);
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--accent-color);
    position: relative;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: clamp(10px, 2vw, 12px) clamp(20px, 4vw, 24px);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Enhanced Code Window with better mobile display */
.code-window {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.2);
    max-width: 100%;
}

.window-header {
    background: var(--darker-bg);
    padding: clamp(8px, 2vw, 12px) clamp(12px, 3vw, 16px);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: clamp(10px, 2vw, 12px);
    height: clamp(10px, 2vw, 12px);
    border-radius: 50%;
}

.control.red { background: #ff5f57; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #28ca42; }

.window-title {
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.code-content {
    padding: clamp(15px, 4vw, 20px);
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    line-height: 1.6;
    overflow-x: auto;
}

.code-content pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.keyword { color: #ff79c6; }
.module { color: #8be9fd; }
.class { color: #50fa7b; }
.function { color: #ffb86c; }
.param { color: #f8f8f2; }
.property { color: #bd93f9; }
.string { color: #f1fa8c; }

.typing-animation {
    overflow: hidden;
    white-space: pre-wrap;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    line-height: 1.6;
    tab-size: 4;
    animation: typing 8s steps(120, end), blink-caret 0.75s step-end infinite;
    border-right: 2px solid var(--primary-color);
    padding-right: 2px;
}

@keyframes typing {
    from { 
        width: 0;
        max-height: 0;
    }
    to { 
        width: 100%;
        max-height: 500px;
    }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}

/* Trust Badges in Hero Section */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.badge:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.badge i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--darker-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tech span {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Technologies Section */
.technologies {
    padding: 100px 0;
}

.tech-categories {
    display: grid;
    gap: 3rem;
}

.tech-category h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.tech-category h3 i {
    color: var(--primary-color);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.tech-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.tech-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tech-item span {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

/* Trust Indicators Section */
.trust-indicators {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(99, 102, 241, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.trust-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.trust-item:hover::before {
    transform: scaleX(1);
}

.trust-item i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-item h4 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.trust-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Enhanced About Description */
.about-description p strong {
    color: var(--primary-color);
    font-weight: 700;
}
/* Enhanced Body Styles for Mobile Navigation */
body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

body.nav-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(5px);
}

/* About Company Section */
.about-company {
    padding: 100px 0;
    background: var(--darker-bg);
    position: relative;
    overflow: hidden;
}

.about-company::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.about-company .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.company-intro {
    margin-top: 2rem;
}

.urdu-highlight {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.urdu-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

.urdu-text {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-family: 'Noto Nastaliq Urdu', serif;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.urdu-meaning {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-style: italic;
}

.company-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.stat-card:hover::before {
    transform: scaleY(1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.company-values {
    padding: 2rem;
    background: rgba(99, 102, 241, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.08);
}

.company-values h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.05);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.15);
}

.value-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.value-item span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Founder Section */
.founder-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    position: relative;
    overflow: hidden;
}

.founder-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.founder-content {
    max-width: 1200px;
    margin: 0 auto;
}

.founder-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.founder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.founder-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.founder-avatar {
    position: relative;
    width: 150px;
    height: 150px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.avatar-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: conic-gradient(from 0deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    z-index: -1;
    animation: rotate 3s linear infinite;
    opacity: 0.7;
}

.founder-achievements {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
}

.founder-achievements .achievement {
    text-align: center;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.founder-achievements .achievement:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.founder-info h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.founder-title {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.founder-bio {
    margin-bottom: 2.5rem;
}

.founder-bio p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.founder-expertise h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    padding: 0.6rem 1.2rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.about {
    padding: 100px 0;
    background: var(--darker-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Leadership Section Styles */
.leadership-section {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.leadership-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

/* Leadership Section */
.leadership {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    position: relative;
    overflow: hidden;
}

.leadership-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.architect-profile {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.architect-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.architect-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.architect-title {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.architect-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.achievement {
    text-align: center;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.achievement:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.2);
}

.achievement .number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.achievement .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.core-values {
    margin-top: 2rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.value-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.value-item h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.value-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* About Visual with Scroll Animation */
.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    min-height: 400px;
    transform: translateY(0);
    transition: transform 0.1s ease-out;
    z-index: 1;
}

.innovation-circle {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.circle-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.arabic-text {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.english-text {
    display: block;
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.orbit {
    position: absolute;
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.orbit-1 {
    width: 200px;
    height: 200px;
    top: 50px;
    left: 50px;
}

.orbit-2 {
    width: 250px;
    height: 250px;
    top: 25px;
    left: 25px;
    animation-duration: 30s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 300px;
    height: 300px;
    top: 0;
    left: 0;
    animation-duration: 40s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Call to Action Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
    font-weight: 500;
}

.cta-feature i {
    font-size: 1.2rem;
    color: #ffd700;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    flex: 1;
    background: var(--darker-bg);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

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

.footer-section h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    color: var(--text-secondary);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
        position: fixed;
        left: 0;
        top: 60px;
        flex-direction: column;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border-top: 1px solid rgba(99, 102, 241, 0.2);
        z-index: 999;
        height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .nav-menu.active li {
        margin: 0.8rem 0;
        opacity: 0;
        transform: translateY(20px);
        animation: slideInNav 0.3s ease forwards;
    }
    
    .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { animation-delay: 0.5s; }
    
    @keyframes slideInNav {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 2rem;
        display: block;
        border-radius: 8px;
        margin: 0 1rem;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(99, 102, 241, 0.1);
        transform: translateX(5px);
    }
    
    .hamburger {
        display: flex;
    }
}

/* Enhanced Responsive Design with Unique Elements */

/* Ultra-small devices (280px - 320px) */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.6rem !important;
        line-height: 1.1;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .badge {
        width: 100%;
        max-width: 250px;
        justify-content: center;
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .code-window {
        display: none; /* Hide on ultra-small screens */
    }
    
    .innovation-circle {
        width: 150px;
        height: 150px;
    }
    
    .orbit-1, .orbit-2, .orbit-3 {
        display: none; /* Simplify on ultra-small screens */
    }
    
    .arabic-text {
        font-size: 1.5rem;
    }
}

/* Small Mobile Devices (321px - 480px) */
@media (min-width: 321px) and (max-width: 480px) {
    .container {
        padding: 0 clamp(15px, 4vw, 20px);
    }
    
    .nav-container {
        padding: 0 clamp(15px, 4vw, 20px);
        height: 60px;
    }
    
    .logo-text {
        font-size: clamp(1.2rem, 4vw, 1.4rem);
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
        position: fixed;
        left: 0;
        top: 60px;
        flex-direction: column;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 2rem 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border-top: 1px solid rgba(99, 102, 241, 0.2);
        z-index: 999;
        height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 3px;
        padding: 8px;
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .hamburger:hover {
        background: rgba(99, 102, 241, 0.1);
    }
    
    .hamburger .bar {
        width: 20px;
        height: 2px;
        background: var(--text-primary);
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 2rem 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border-top: 1px solid rgba(99, 102, 241, 0.2);
        z-index: 999;
        height: calc(100vh - 60px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0.8rem 0;
        opacity: 0;
        transform: translateY(20px);
        animation: slideInNav 0.3s ease forwards;
    }
    
    .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { animation-delay: 0.5s; }
    
    @keyframes slideInNav {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 2rem;
        display: block;
        border-radius: 8px;
        margin: 0 1rem;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(99, 102, 241, 0.1);
        transform: translateX(5px);
    }
    
    /* Enhanced Trust Badges Mobile */
    .trust-badges {
        flex-direction: column;
        gap: 0.8rem;
        margin: 1.5rem 0;
        align-items: center;
    }

    .badge {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }
    
    .badge::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
        transition: left 0.5s ease;
    }
    
    .badge:hover::before {
        left: 100%;
    }

    .badge i {
        font-size: 1rem;
    }
    
    .hero {
        min-height: 100vh;
        padding: 80px 0 40px;
        position: relative;
        overflow: hidden;
    }
    
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 30% 70%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
        pointer-events: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        position: relative;
        z-index: 2;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        line-height: 1.2;
        margin-bottom: 1rem;
        background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 3vw, 1rem);
        margin-bottom: 1rem;
        opacity: 0.9;
    }
    
    .typing-container {
        margin: 1.5rem 0;
        min-height: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .typing-text {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }
    
    .typed-words {
        font-size: clamp(1rem, 4vw, 1.2rem);
        font-weight: 700;
        color: var(--primary-color);
        min-height: 1.5em;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 20px;
        font-size: 0.95rem;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }
    
    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .btn:hover::before {
        left: 100%;
    }
    
    .code-window {
        margin-top: 2rem;
        max-width: 100%;
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .code-header {
        padding: 8px 12px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .code-dot {
        width: 8px;
        height: 8px;
    }
    
    .code-content {
        padding: 12px;
        font-size: 0.75rem;
        line-height: 1.4;
        overflow-x: auto;
    }
    
    /* Enhanced Sections Mobile */
    .services, .technologies, .about, .contact {
        padding: clamp(40px, 10vw, 60px) 0;
        position: relative;
    }
    
    .section-title {
        font-size: clamp(1.6rem, 5vw, 1.8rem);
        margin-bottom: 1rem;
        position: relative;
    }
    
    .section-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: var(--gradient-primary);
        border-radius: 2px;
    }
    
    .section-subtitle {
        font-size: clamp(0.9rem, 3vw, 1rem);
        opacity: 0.8;
    }
    
    .section-header {
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        position: relative;
        overflow: hidden;
    }
    
    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--gradient-primary);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }
    
    .service-card:hover::before {
        transform: scaleX(1);
    }
    
    .service-card h3 {
        font-size: clamp(1.2rem, 4vw, 1.3rem);
        margin-bottom: 1rem;
    }
    
    .service-card p {
        font-size: clamp(0.9rem, 3vw, 1rem);
        line-height: 1.6;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .tech-item {
        padding: 1.5rem 1rem;
        text-align: center;
        position: relative;
        overflow: hidden;
    }
    
    .tech-item::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
        transform: translate(-50%, -50%);
        transition: all 0.3s ease;
        border-radius: 50%;
    }
    
    .tech-item:hover::before {
        width: 200px;
        height: 200px;
    }
    
    .tech-item i {
        font-size: 2rem;
        margin-bottom: 0.8rem;
        position: relative;
        z-index: 2;
    }
    
    .tech-item h4 {
        font-size: clamp(0.9rem, 3vw, 1rem);
        position: relative;
        z-index: 2;
    }
    
    /* Enhanced About Section Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .innovation-circle {
        width: 220px;
        height: 220px;
        position: relative;
    }
    
    .orbit-1 {
        width: 140px;
        height: 140px;
        top: 40px;
        left: 40px;
        border-width: 1px;
    }
    
    .orbit-2 {
        width: 180px;
        height: 180px;
        top: 20px;
        left: 20px;
        border-width: 1px;
    }
    
    .orbit-3 {
        width: 220px;
        height: 220px;
        top: 0;
        left: 0;
        border-width: 1px;
    }
    
    .arabic-text {
        font-size: 2.2rem;
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
    
    .english-text {
        font-size: 1rem;
    }
    
    /* Enhanced Trust Indicators Mobile */
    .trust-indicators {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 1.5rem;
        margin-top: 2rem;
        background: rgba(99, 102, 241, 0.02);
        border-radius: 16px;
        border: 1px solid rgba(99, 102, 241, 0.08);
    }

    .trust-item {
        padding: 1.5rem;
        background: var(--card-bg);
        border-radius: 12px;
        border: 1px solid rgba(99, 102, 241, 0.1);
        position: relative;
        overflow: hidden;
    }
    
    .trust-item::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 40px;
        height: 40px;
        background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
        border-radius: 50%;
        transform: translate(20px, -20px);
    }

    .trust-item i {
        font-size: 1.8rem;
        width: 55px;
        height: 55px;
        padding: 0.8rem;
        margin-bottom: 1rem;
        background: rgba(99, 102, 241, 0.08);
        border: 1px solid rgba(99, 102, 241, 0.15);
    }

    .trust-item h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .trust-item p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Enhanced Leadership Section Mobile */
    .leadership-section {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
        background: linear-gradient(135deg, var(--card-bg) 0%, rgba(99, 102, 241, 0.03) 100%);
        border-radius: 16px;
        border: 1px solid rgba(99, 102, 241, 0.1);
        position: relative;
        overflow: hidden;
    }
    
    .leadership-section::after {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
        pointer-events: none;
    }
    
    .architect-profile {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        position: relative;
        z-index: 2;
    }
    
    .architect-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin: 0 auto;
        box-shadow: 0 15px 35px rgba(99, 102, 241, 0.3);
        border: 3px solid rgba(99, 102, 241, 0.2);
    }
    
    .architect-info h3 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .architect-title {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .architect-description {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }
    
    .architect-achievements {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .achievement {
        padding: 1rem;
        background: rgba(99, 102, 241, 0.03);
        border: 1px solid rgba(99, 102, 241, 0.1);
        border-radius: 10px;
        position: relative;
        overflow: hidden;
    }
    
    .achievement::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
        transition: left 0.6s ease;
    }
    
    .achievement:hover::before {
        left: 100%;
    }
    
    .achievement .number {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
        text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
    }
    
    .achievement .label {
        font-size: 0.8rem;
        opacity: 0.9;
    }
    
    /* Responsive Design for CTA Section */
@media (max-width: 768px) {
    .cta-title {
        font-size: 2.5rem;
    }
    
    .cta-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 3rem;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
}

/* Enhanced Contact Section Mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-info {
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
        background: linear-gradient(135deg, var(--card-bg) 0%, rgba(99, 102, 241, 0.02) 100%);
        border-radius: 16px;
        border: 1px solid rgba(99, 102, 241, 0.1);
        position: relative;
        overflow: hidden;
    }
    
    .contact-form::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--gradient-primary);
    }
    
    .form-group {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 16px;
        border-radius: 8px;
        border: 1px solid rgba(99, 102, 241, 0.2);
        background: rgba(99, 102, 241, 0.02);
        transition: all 0.3s ease;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        background: rgba(99, 102, 241, 0.05);
    }
    
    /* Enhanced Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    
    .footer-section {
        padding: 1.5rem 1rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .social-links {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
        border-radius: 10px;
        background: rgba(99, 102, 241, 0.05);
        border: 1px solid rgba(99, 102, 241, 0.1);
        transition: all 0.3s ease;
    }
    
    .social-links a:hover {
        background: var(--primary-color);
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    }
}

/* Large Mobile Devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 clamp(20px, 5vw, 30px);
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
        position: fixed;
        left: 0;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 2.5rem 0;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
        border-top: 1px solid rgba(99, 102, 241, 0.2);
        z-index: 999;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 3px;
        padding: 10px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .hamburger:hover {
        background: rgba(99, 102, 241, 0.1);
    }
    
    .hamburger .bar {
        width: 22px;
        height: 2px;
        background: var(--text-primary);
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
        opacity: 0;
        transform: translateY(20px);
        animation: slideInNav 0.3s ease forwards;
    }
    
    .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { animation-delay: 0.5s; }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        display: block;
        border-radius: 10px;
        margin: 0 2rem;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(99, 102, 241, 0.1);
        transform: translateX(8px);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 6vw, 2.8rem);
        background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .trust-badges {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .badge {
        flex: 0 1 auto;
        min-width: 200px;
        padding: 0.8rem 1.2rem;
    }
    
    .cta-buttons {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .btn {
        min-width: 180px;
        padding: 16px 24px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .tech-item {
        padding: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    /* About Company Mobile */
    .about-company .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .urdu-text {
        font-size: 2.5rem;
    }
    
    .company-stats {
        margin-bottom: 2rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    /* Founder Section Mobile */
    .founder-card {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2rem;
        text-align: center;
    }
    
    .founder-avatar {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
        margin: 0 auto 1.5rem;
    }
    
    .founder-info h3 {
        font-size: 2rem;
    }
    
    .expertise-tags {
        justify-content: center;
    }
    
    .founder-achievements {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
    
    .founder-achievements .achievement {
        padding: 1rem;
    }
    
    .innovation-circle {
        width: 280px;
        height: 280px;
    }
    
    .orbit-1 {
        width: 180px;
        height: 180px;
        top: 50px;
        left: 50px;
    }
    
    .orbit-2 {
        width: 230px;
        height: 230px;
        top: 25px;
        left: 25px;
    }
    
    .orbit-3 {
        width: 280px;
        height: 280px;
        top: 0;
        left: 0;
    }
    
    .trust-indicators {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .architect-achievements {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 clamp(30px, 6vw, 40px);
    }
    
    .hero-content {
        gap: 3.5rem;
    }
    
    .hero-title {
        font-size: clamp(2.8rem, 5vw, 3.2rem);
    }
    
    .trust-badges {
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .service-card {
        padding: 2.5rem 2rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }
    
    /* About Company Tablet */
    .about-company .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .urdu-text {
        font-size: 3rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Founder Section Tablet */
    .founder-card {
        grid-template-columns: 1fr 2fr;
        gap: 3rem;
        padding: 2.5rem;
    }
    
    .founder-avatar {
        width: 130px;
        height: 130px;
        font-size: 2.8rem;
    }
    
    .founder-info h3 {
        font-size: 2.2rem;
    }
    
    .trust-indicators {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .architect-achievements {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Large Tablets and Small Desktops (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tech-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .trust-indicators {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Enhanced Animations and Interactions */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .tech-item,
    .trust-item,
    .achievement {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .service-card:hover {
        transform: translateY(-8px) scale(1.02);
    }
    
    .tech-item:hover {
        transform: translateY(-5px) scale(1.05);
    }
    
    .trust-item:hover {
        transform: translateY(-5px);
    }
    
    .achievement:hover {
        transform: translateY(-3px) scale(1.02);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .code-content {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .badge {
        border-width: 0.5px;
    }
    
    .trust-item,
    .service-card,
    .achievement {
        border-width: 0.5px;
    }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    .trust-item::after,
    .service-card::before,
    .achievement::before {
        opacity: 0.7;
    }
    
    .badge {
        backdrop-filter: blur(15px);
    }
    
    .nav-menu {
        backdrop-filter: blur(25px);
    }
}

/* Landscape Mobile Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 60px 0 30px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .trust-badges {
        margin: 1rem 0;
    }
    
    .cta-buttons {
        margin-top: 1rem;
    }
    
    .sections {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
    
    /* Tablet Responsiveness */
    .architect-achievements {
        grid-template-columns: repeat(2, 1fr);
    }

    .leadership-section {
        padding: 1.75rem;
    }

    .architect-profile {
        gap: 1.25rem;
    }
}

/* Large Screens (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .container {
        max-width: 1100px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra Large Screens (1441px+) */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Landscape Mobile Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 70px 0 20px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon,
    .tech-item i,
    .contact-item i {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
/* Enhanced Mobile Responsive Styles for Code */
@media (max-width: 480px) {
    .typing-animation {
        font-size: 0.75rem;
        line-height: 1.4;
        animation: typing 6s steps(80, end), blink-caret 0.75s step-end infinite;
        overflow-x: auto;
        white-space: pre;
        padding-right: 1px;
        border-right-width: 1px;
    }
    
    .code-content {
        padding: 12px;
        overflow-x: auto;
    }
    
    .code-content pre {
        margin: 0;
        overflow-x: auto;
    }
}
}

/* Dark Mode Support */
@media (prefers-color-scheme: light) {
    :root {
        --dark-bg: #f8fafc;
        --darker-bg: #f1f5f9;
        --card-bg: #ffffff;
        --text-primary: #1e293b;
        --text-secondary: #64748b;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .floating-particles,
    .hero-background {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero-content {
        grid-template-columns: 1fr !important;
    }
}