/* Cybersecurity Page Specific Styles */

/* Reset any RTL styles and force LTR */
html, body {
    direction: ltr !important;
    text-align: left !important;
}

/* Ensure hamburger is hidden on desktop */
@media (min-width: 769px) {
    .hamburger {
        display: none !important;
    }

    .nav-menu {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        width: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        left: auto !important;
    }
}

/* Ensure all containers use LTR */
.container, .section-header, .service-block, .detail-section {
    direction: ltr !important;
    text-align: left !important;
}

/* Mobile-specific container padding */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* Fix navigation alignment */
.nav-wrapper {
    flex-direction: row !important;
}

.nav-menu {
    flex-direction: row !important;
}

/* Ensure service headers are properly aligned */
.service-header h3,
.service-header p,
.service-description,
.detail-section h4,
.detail-section p,
.detail-section ul {
    text-align: left !important;
    direction: ltr !important;
}

/* Cyber Hero Section */
.cyber-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #001233 0%, #0539B5 50%, #1E56D8 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    direction: ltr;
    text-align: left;
}

.cyber-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cyber-hero .container {
    position: relative;
    z-index: 2;
}

.cyber-hero .hero-content {
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    direction: ltr;
}

.experience-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 10px 25px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.badge-number {
    font-size: 2rem;
    font-weight: 700;
    color: #FFD60A;
    margin-right: 10px;
}

.badge-text {
    font-size: 1rem;
    color: var(--white);
}

.cyber-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.cyber-hero .hero-title .highlight {
    color: #FFD60A;
    text-shadow: 0 0 30px rgba(255, 214, 10, 0.5);
}

.cyber-hero .hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cyber-hero .hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #FFD60A;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Cyber Animation */
.cyber-animation {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    opacity: 0.3;
}

.shield-container {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.shield {
    filter: drop-shadow(0 0 30px rgba(5, 57, 181, 0.5));
    animation: pulse 3s ease-in-out infinite;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(transparent, #FFD60A, transparent);
    animation: scan 3s linear infinite;
}

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

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

/* Introduction Section */
.intro-section {
    padding: 80px 0;
    background: var(--white);
}

.intro-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    direction: ltr;
}

.intro-content h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.team-expertise {
    margin: 3rem 0;
}

.team-expertise h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.expertise-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(5, 57, 181, 0.05) 0%, rgba(30, 86, 216, 0.05) 100%);
    border-radius: 10px;
    border: 1px solid rgba(5, 57, 181, 0.1);
    transition: all 0.3s;
}

.expertise-item:hover {
    background: linear-gradient(135deg, rgba(5, 57, 181, 0.1) 0%, rgba(30, 86, 216, 0.1) 100%);
    transform: translateY(-3px);
}

.expertise-item svg {
    color: var(--primary-color);
    width: 24px;
    height: 24px;
}

.expertise-item span {
    color: var(--text-dark);
    font-weight: 500;
}

.industry-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 2rem;
}

/* Core Services Section */
.cyber-services {
    padding: 80px 0;
    background: var(--light-bg);
}

.service-block {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    direction: ltr;
    text-align: left;
}

.service-block:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.service-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-direction: row;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.service-icon.red-team {
    background: linear-gradient(135deg, #FF6B6B 0%, #C92A2A 100%);
}

.service-icon.purple-team {
    background: linear-gradient(135deg, #845EC2 0%, #5A189A 100%);
}

.service-icon.assessment {
    background: linear-gradient(135deg, #4A90E2 0%, #0539B5 100%);
}

.service-icon.pentest {
    background: linear-gradient(135deg, #00C9A7 0%, #00916E 100%);
}

.service-icon.threat-intel {
    background: linear-gradient(135deg, #FFB84D 0%, #F08C00 100%);
}

.service-icon.awareness {
    background: linear-gradient(135deg, #FF6EC7 0%, #C73E81 100%);
}

.service-icon svg {
    color: var(--white);
}

.service-header h3 {
    font-size: 1.75rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.service-tagline {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
}

.service-description {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.service-details {
    display: grid;
    gap: 1.5rem;
}

.detail-section {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(5, 57, 181, 0.02) 0%, rgba(30, 86, 216, 0.02) 100%);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    border-right: none;
    text-align: left;
    direction: ltr;
}

.detail-section h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

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

.detail-section ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    padding-right: 0;
    color: var(--text-dark);
    text-align: left;
    direction: ltr;
}

.detail-section ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    right: auto;
    color: var(--primary-color);
}

.detail-section p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Standards Section */
.standards-section {
    padding: 80px 0;
    background: var(--white);
    position: relative;
    z-index: 1;
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.standard-card {
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(5, 57, 181, 0.1);
    text-align: center;
    transition: all 0.3s;
}

.standard-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(5, 57, 181, 0.15);
}

.standard-card h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.standard-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Why Choose Section */
.why-cyber {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    z-index: 1;
}

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

.why-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.why-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(5, 57, 181, 0.1) 0%, rgba(30, 86, 216, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon svg {
    color: var(--primary-color);
}

.why-card h4 {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.why-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Commitment Section */
.commitment-section {
    padding: 80px 0;
    background: var(--white);
    text-align: center;
    direction: ltr;
    position: relative;
    z-index: 1;
}

.commitment-content h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

.commitment-text {
    font-size: 1.25rem;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.commitment-text strong {
    color: var(--primary-color);
}

.commitment-tagline {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(5, 57, 181, 0.05) 0%, rgba(30, 86, 216, 0.05) 100%);
    border-radius: 15px;
    display: inline-block;
}

.commitment-tagline p {
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Responsive Design - Comprehensive Mobile Optimization */
@media (max-width: 768px) {
    /* Hero Section Mobile */
    .cyber-hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .cyber-hero .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .cyber-hero .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding: 0 10px;
    }

    .cyber-hero .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }

    .experience-badge {
        padding: 8px 20px;
        margin-bottom: 1.5rem;
    }

    .badge-number {
        font-size: 1.5rem;
        margin-right: 8px;
    }

    .badge-text {
        font-size: 0.85rem;
    }

    /* Hero Stats Mobile */
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }

    .stat-item p {
        font-size: 0.75rem;
    }

    /* Hero Buttons Mobile */
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 20px;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .cyber-animation {
        display: none;
    }

    /* Introduction Section Mobile */
    .intro-section {
        padding: 50px 0;
    }

    .intro-content h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .lead-text {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 15px;
    }

    .team-expertise h3 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .expertise-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .industry-text {
        font-size: 0.95rem;
        padding: 0 15px;
    }

    /* Services Section Mobile */
    .cyber-services {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 1.75rem;
        padding: 0 15px;
    }

    .section-header p {
        font-size: 0.95rem;
        padding: 0 15px;
    }

    .service-block {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 15px;
    }

    .service-header {
        flex-direction: column;
        text-align: left;
        gap: 1rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        margin: 0;
    }

    .service-icon svg {
        width: 32px;
        height: 32px;
    }

    .service-header h3 {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .service-tagline {
        font-size: 0.9rem;
    }

    .service-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .detail-section {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    .detail-section h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .detail-section ul li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
        padding-left: 1.25rem;
        line-height: 1.5;
    }

    .detail-section p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Standards Section Mobile */
    .standards-section {
        padding: 50px 0;
        background: var(--white) !important;
        position: relative;
        z-index: 1;
    }

    .standards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .standard-card {
        padding: 1.25rem;
    }

    .standard-card h4 {
        font-size: 1.1rem;
    }

    .standard-card p {
        font-size: 0.85rem;
    }

    /* Why Choose Section Mobile */
    .why-cyber {
        padding: 50px 0;
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
        position: relative;
        z-index: 1;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .why-card {
        padding: 1.5rem;
    }

    .why-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .why-icon svg {
        width: 32px;
        height: 32px;
    }

    .why-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .why-card p {
        font-size: 0.9rem;
    }

    /* Commitment Section Mobile */
    .commitment-section {
        padding: 50px 0;
    }

    .commitment-content h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
        padding: 0 15px;
    }

    .commitment-text {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 15px;
    }

    .commitment-tagline {
        padding: 1.5rem;
        margin: 0 15px;
    }

    .commitment-tagline p {
        font-size: 1.1rem;
    }

    /* CTA Section Mobile */
    .cta {
        padding: 50px 0;
        position: relative;
        z-index: 1;
    }

    .cta-content h2 {
        font-size: 1.75rem;
        padding: 0 15px;
    }

    .cta-content p {
        font-size: 1rem;
        padding: 0 15px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0 20px;
    }

    .cta-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    /* Contact Section Mobile */
    .contact {
        padding: 50px 0;
        position: relative;
        z-index: 1;
        background: var(--light-bg) !important;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        gap: 1.5rem;
        padding: 0 15px;
    }

    .info-item h4 {
        font-size: 1rem;
    }

    .info-item p {
        font-size: 0.9rem;
    }

    .contact-form {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 12px;
    }

    .contact-form .btn {
        width: 100%;
        padding: 14px;
        font-size: 0.95rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 30px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 15px;
    }

    .footer-section h3 {
        font-size: 1.25rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section ul {
        font-size: 0.9rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        font-size: 0.85rem;
        padding: 15px;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .cyber-hero .hero-title {
        font-size: 1.5rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .standards-grid {
        grid-template-columns: 1fr;
    }

    .service-header h3 {
        font-size: 1.15rem;
    }

    .commitment-tagline p {
        font-size: 1rem;
    }
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-menu a {
        padding: 12px;
        background: var(--white);
        display: block;
        color: var(--text-dark);
        text-decoration: none;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .lang-btn {
        min-width: 60px;
        padding: 8px 14px;
    }

    /* Ensure Learn More button in service card is visible */
    .service-card .btn {
        display: inline-block !important;
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }

    /* Fix overflow issues */
    body {
        overflow-x: hidden;
    }

    /* Fix floating/black background issues */
    section {
        position: relative;
        z-index: 1;
        isolation: isolate;
    }

    .service-block,
    .detail-section {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}