/* ============================================
   IDEA KURD - CYBERSECURITY THEME CSS
   ============================================ */

/* CSS Variables */
:root {
    --primary: #a1cad7;
    --primary-dark: #1a8db3;
    --secondary: #7b2cbf;
    --accent: #ff006e;
    --bg-dark: #0a0e17;
    --bg-darker: #050810;
    --bg-card: rgba(10, 14, 23, 0.9);
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --neon-glow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 40px var(--primary);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', 'Noto Sans Arabic', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-dark);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-darker);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

[dir="rtl"] body {
    font-family: 'Noto Sans Arabic', var(--font-body);
}

/* ============================================
   CYBER BACKGROUND
   ============================================ */
.cyber-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: scanLine 4s linear infinite;
    opacity: 0.5;
}

@keyframes scanLine {
    0% { top: -2px; }
    100% { top: 100%; }
}

.circuit-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0v30h30' stroke='%2300d4ff' stroke-width='0.5' fill='none' opacity='0.1'/%3E%3Ccircle cx='30' cy='30' r='2' fill='%2300d4ff' opacity='0.2'/%3E%3C/svg%3E");
    opacity: 0.3;
}

/* Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: floatParticle 15s infinite;
    box-shadow: 0 0 10px var(--primary);
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--primary));
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.1) rotate(5deg);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: var(--neon-glow);
    letter-spacing: 2px;
}

[dir="rtl"] .logo-text {
    font-family: 'Noto Sans Arabic', sans-serif;
}

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

.nav-link {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

[dir="rtl"] .nav-link {
    font-family: 'Noto Sans Arabic', sans-serif;
}

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

[dir="rtl"] .nav-link::before {
    left: auto;
    right: 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

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

.lang-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    padding: 8px 16px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid rgba(0, 212, 255, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

[dir="rtl"] .lang-btn {
    font-family: 'Noto Sans Arabic', sans-serif;
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--bg-dark);
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--neon-glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 30px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 900px;
}

.hero-logo {
    position: relative;
    margin-bottom: 30px;
    display: inline-block;
}

.hero-logo-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    animation: floatLogo 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px var(--primary));
}

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

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 20px;
    text-shadow: var(--neon-glow);
    position: relative;
}

[dir="rtl"] .hero-title {
    font-family: 'Noto Sans Arabic', sans-serif;
    letter-spacing: 0;
}

/* Glitch Effect */
.glitch {
    animation: glitch 5s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitchTop 1s linear infinite;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.glitch::after {
    animation: glitchBottom 1.5s linear infinite;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
    -webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

@keyframes glitch {
    2%, 64% { transform: translate(2px,0) skew(0deg); }
    4%, 60% { transform: translate(-2px,0) skew(0deg); }
    62% { transform: translate(0,0) skew(5deg); }
}

@keyframes glitchTop {
    2%, 64% { transform: translate(2px, -2px); }
    4%, 60% { transform: translate(-2px, 2px); }
    62% { transform: translate(13px, -1px) skew(-13deg); }
}

@keyframes glitchBottom {
    2%, 64% { transform: translate(-2px, 0); }
    4%, 60% { transform: translate(-2px, 0); }
    62% { transform: translate(-22px, 5px) skew(21deg); }
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 3px;
}

[dir="rtl"] .hero-subtitle {
    font-family: 'Noto Sans Arabic', sans-serif;
    letter-spacing: 0;
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink 0.75s step-end infinite;
    display: inline-block;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

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

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

/* Cyber Button */
.cyber-btn {
    display: inline-block;
    position: relative;
    padding: 18px 50px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--bg-dark);
    background: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

[dir="rtl"] .cyber-btn {
    font-family: 'Noto Sans Arabic', sans-serif;
    letter-spacing: 0;
}

.cyber-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.cyber-btn:hover::before {
    left: 100%;
}

.cyber-btn:hover {
    box-shadow: var(--neon-glow);
    transform: translateY(-3px);
}

.btn-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    animation: borderPulse 2s infinite;
}

@keyframes borderPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 13px;
    position: relative;
    margin: 0 auto 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 24px; }
}

.arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    transform: rotate(45deg);
    margin: -2px auto;
    animation: arrowDown 2s infinite;
}

.arrows span:nth-child(2) { animation-delay: 0.2s; }
.arrows span:nth-child(3) { animation-delay: 0.4s; }

@keyframes arrowDown {
    0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}

/* Hero Graphics */
.hero-graphics {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    pointer-events: none;
}

.cyber-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    animation: rotateCircle 20s linear infinite;
}

.cyber-circle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: var(--neon-glow);
}

.cyber-circle.delay-1 {
    width: 500px;
    height: 500px;
    animation-duration: 25s;
    animation-direction: reverse;
    border-style: dashed;
}

.cyber-circle.delay-2 {
    width: 550px;
    height: 550px;
    animation-duration: 30s;
    border-color: rgba(123, 44, 191, 0.2);
}

@keyframes rotateCircle {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.float-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    animation: floatIcon 8s ease-in-out infinite;
}

.float-icon:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.float-icon:nth-child(2) { top: 20%; right: 15%; animation-delay: 2s; }
.float-icon:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 4s; }

.float-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--primary);
    stroke-width: 1.5;
    opacity: 0.5;
    filter: drop-shadow(0 0 10px var(--primary));
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

[dir="rtl"] .section-title {
    font-family: 'Noto Sans Arabic', sans-serif;
    letter-spacing: 0;
}

.title-decoration {
    display: block;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 50%, var(--bg-darker) 100%);
}

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

.service-card {
    position: relative;
    background: var(--bg-card);
    padding: 40px 30px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover .card-glow {
    opacity: 1;
    animation: glowMove 4s linear infinite;
}

@keyframes glowMove {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--primary);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 10px var(--primary));
    transition: all 0.3s ease;
}

.service-card:hover .service-icon svg {
    stroke: var(--text-primary);
    filter: drop-shadow(0 0 20px var(--primary));
    transform: scale(1.1);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

[dir="rtl"] .service-card h3 {
    font-family: 'Noto Sans Arabic', sans-serif;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.card-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.4s ease;
}

.service-card:hover .card-line {
    width: 100%;
}

/* ============================================
   CLIENTS SECTION
   ============================================ */
.clients {
    background: var(--bg-dark);
    overflow: hidden;
}

.clients-marquee {
    overflow: hidden;
    position: relative;
}

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

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

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

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
    gap: 30px;
}

[dir="rtl"] .marquee-content {
    animation: marqueeRTL 30s linear infinite;
}

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

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

.client-card {
    flex-shrink: 0;
    min-width: 280px;
    padding: 30px 40px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.client-inner {
    text-align: center;
}

.client-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
}

[dir="rtl"] .client-name {
    font-family: 'Noto Sans Arabic', sans-serif;
    letter-spacing: 0;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

[dir="rtl"] .info-card {
    flex-direction: row-reverse;
    text-align: right;
}

.info-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[dir="rtl"] .info-card:hover {
    transform: translateX(-10px);
}

.info-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
}

.info-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 1.5;
}

.info-content h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 10px;
}

[dir="rtl"] .info-content h4 {
    font-family: 'Noto Sans Arabic', sans-serif;
}

.info-content a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    direction: ltr;
}

.info-content a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

[dir="rtl"] .social-links {
    justify-content: flex-end;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
    clip-path: polygon(15% 0%, 100% 0%, 100% 85%, 85% 100%, 0% 100%, 0% 15%);
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--neon-glow);
}

.social-link:hover svg {
    stroke: var(--bg-dark);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    padding: 50px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.form-group {
    position: relative;
    margin-bottom: 40px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    outline: none;
    transition: border-color 0.3s ease;
}

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group textarea {
    font-family: 'Noto Sans Arabic', sans-serif;
    text-align: right;
}

.form-group textarea {
    resize: none;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
}

[dir="rtl"] .form-group label {
    left: auto;
    right: 0;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -20px;
    font-size: 0.85rem;
    color: var(--primary);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

[dir="rtl"] .input-line {
    left: auto;
    right: 0;
}

.form-group input:focus ~ .input-line,
.form-group textarea:focus ~ .input-line {
    width: 100%;
}

.submit-btn {
    width: 100%;
    margin-top: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-darker);
    padding: 60px 30px 30px;
    text-align: center;
    position: relative;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px var(--primary));
}

.footer-logo span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

[dir="rtl"] .footer-logo span {
    font-family: 'Noto Sans Arabic', sans-serif;
}

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

.footer-decoration {
    margin-top: 40px;
}

.cyber-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: lineGlow 3s ease-in-out infinite;
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ============================================
   ANIMATIONS ON SCROLL
   ============================================ */
[data-aos] {
    opacity: 0;
    transition: all 0.6s ease;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(10, 14, 23, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(0, 212, 255, 0.2);
    }
    
    [dir="rtl"] .nav-menu {
        right: auto;
        left: -100%;
        border-left: none;
        border-right: 1px solid rgba(0, 212, 255, 0.2);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    [dir="rtl"] .nav-menu.active {
        right: auto;
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .lang-switcher {
        display: none;
    }
    
    .nav-menu .lang-switcher {
        display: flex;
        margin-top: 20px;
    }
    
    .hero-graphics {
        width: 100%;
        height: 100%;
    }
    
    .cyber-circle {
        width: 250px;
        height: 250px;
    }
    
    .cyber-circle.delay-1 {
        width: 300px;
        height: 300px;
    }
    
    .cyber-circle.delay-2 {
        width: 350px;
        height: 350px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
    }
    
    [dir="rtl"] .info-card {
        flex-direction: column;
    }
    
    .social-links {
        justify-content: center;
    }
    
    [dir="rtl"] .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-logo-img {
        width: 120px;
        height: 120px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    section {
        padding: 80px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .client-card {
        min-width: 200px;
        padding: 20px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
