@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #685785;
    --primary-dark: #4D3F6B;
    --secondary: #8c7ca9;
    --accent: #b3a8c7;
    --bg-dark: #161128;
    --bg-card: rgba(37, 28, 55, 0.7);
    --bg-card-hover: rgba(47, 36, 68, 0.8);
    --text-primary: #FFFFFF;
    --text-secondary: #b3a8c7;
    --text-muted: #9589A8;
    --border-color: rgba(140, 124, 169, 0.15);
    --gradient-1: linear-gradient(135deg, #685785, #8c7ca9);
    --gradient-2: linear-gradient(135deg, #685785, #b3a8c7);
    --shadow: 0 8px 32px rgba(104, 87, 133, 0.2);
    --shadow-lg: 0 20px 60px rgba(104, 87, 133, 0.3);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --max-width: 1200px;
    --glass-border: rgba(140, 124, 169, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    direction: rtl;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(104, 87, 133, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(140, 124, 169, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(179, 168, 199, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

.section {
    padding: 120px 0;
}

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

.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 12px;
    padding: 6px 18px;
    background: rgba(179, 168, 199, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
}

.section-subtitle::before {
    content: '◆';
    font-size: 8px;
    color: var(--secondary);
}

.section-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 16px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 4px 20px rgba(104, 87, 133, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(104, 87, 133, 0.5);
}

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

.btn-secondary:hover {
    border-color: var(--secondary);
    background: rgba(140, 124, 169, 0.1);
    transform: translateY(-3px);
}

.btn-discord {
    background: #5865F2;
    color: #fff;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.5);
}

/* Glass Card */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(22, 17, 40, 0.9);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px;
    background: rgba(22, 17, 40, 0.6);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(140, 124, 169, 0.1);
    border-radius: 18px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 13px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    padding: 10px 28px;
    border-radius: 13px;
    text-decoration: none;
    letter-spacing: 0.5px;
    background: transparent;
    border: none;
    z-index: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(104, 87, 133, 0.4), rgba(140, 124, 169, 0.2));
    box-shadow: 0 4px 24px rgba(104, 87, 133, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    z-index: -1;
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a:hover {
    color: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    opacity: 1;
    transform: scale(1);
    background: rgba(140, 124, 169, 0.1);
    box-shadow: 0 4px 20px rgba(104, 87, 133, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-links a.active {
    color: #fff;
    animation: navGlow 3s ease-in-out infinite;
}

.nav-links a.active::after {
    opacity: 1;
    transform: scale(1);
}

@keyframes navGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(140, 124, 169, 0.3); }
    50% { text-shadow: 0 0 40px rgba(140, 124, 169, 0.6); }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg .gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
}

.hero-bg .orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -150px;
    right: -150px;
    animation: float 10s ease-in-out infinite;
}

.hero-bg .orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -150px;
    left: -150px;
    animation: float 12s ease-in-out infinite reverse;
}

.hero-bg .orb-3 {
    width: 350px;
    height: 350px;
    background: var(--accent);
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    animation: float 8s ease-in-out infinite;
    opacity: 0.08;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(179, 168, 199, 0.06);
    border: 1px solid var(--glass-border);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-text h1 {
    font-size: 54px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-text h1 span {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hero-visual img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    transform: perspective(1000px) rotateY(-3deg);
}

.hero-visual img:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
    box-shadow: 0 25px 60px rgba(104, 87, 133, 0.35);
}

/* Services Section */
.services {
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

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

.service-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    border-color: rgba(140, 124, 169, 0.3);
    box-shadow: var(--shadow);
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(140, 124, 169, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-1);
    border-color: transparent;
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.7;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tags span {
    background: rgba(140, 124, 169, 0.08);
    color: var(--accent);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    border: 1px solid rgba(140, 124, 169, 0.1);
}

/* Works Section */
.works {
    background: linear-gradient(180deg, var(--bg-dark), rgba(40, 31, 57, 0.5), var(--bg-dark));
    position: relative;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.work-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: rgba(140, 124, 169, 0.3);
    box-shadow: var(--shadow-lg);
}

.work-preview {
    height: 220px;
    background: linear-gradient(135deg, rgba(104, 87, 133, 0.15), rgba(140, 124, 169, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.work-preview .preview-icon {
    font-size: 52px;
    opacity: 0.25;
    transition: var(--transition);
}

.work-card:hover .preview-icon {
    opacity: 0.5;
    transform: scale(1.15);
}

.work-preview .work-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--gradient-1);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.work-info {
    padding: 24px;
}

.work-info h4 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 8px;
}

.work-info p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 14px;
    line-height: 1.6;
}

.work-tech {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.work-tech span {
    background: rgba(140, 124, 169, 0.08);
    color: var(--accent);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 11px;
    border: 1px solid rgba(140, 124, 169, 0.08);
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: rgba(40, 31, 57, 0.5);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stats-item {
    padding: 20px;
}

.stats-item .stats-number {
    font-size: 44px;
    font-weight: 900;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.stats-item .stats-label {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 6px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Support Section */
.support {
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.support-container {
    max-width: 600px;
    margin: 0 auto;
}

.support-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 50px 40px;
    box-shadow: var(--shadow-lg);
}

.support-icon {
    width: 80px;
    height: 80px;
    background: rgba(140, 124, 169, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin: 0 auto 24px;
    transition: var(--transition);
}

.support-card:hover .support-icon {
    background: var(--gradient-1);
    border-color: transparent;
}

.support-card h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.support-card p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 28px;
}

.support-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.support-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(40, 31, 57, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    transition: var(--transition);
    outline: none;
    text-align: right;
}

.support-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(140, 124, 169, 0.12);
}

.support-input::placeholder {
    color: var(--text-muted);
}

.support-btn {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-xs);
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.support-btn-discord {
    background: #5865F2;
    color: #fff;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.25);
}

.support-btn-discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.4);
}

.support-btn {
    cursor: pointer;
}

.support-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 40px rgba(104, 87, 133, 0.5) !important;
}

/* Premium Support Card */
.support-premium {
    position: relative;
    background: linear-gradient(135deg, rgba(22, 17, 40, 0.8), rgba(30, 23, 50, 0.6));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 56px 44px;
    text-align: center;
    box-shadow: 0 8px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    isolation: isolate;
}

.support-premium::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: conic-gradient(from 0deg, rgba(140, 124, 169, 0.3), rgba(104, 87, 133, 0.1), rgba(140, 124, 169, 0.3), rgba(179, 168, 199, 0.2), rgba(140, 124, 169, 0.3));
    z-index: -2;
    animation: borderRotate 6s linear infinite;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    padding: 1.5px;
}

.support-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(ellipse at 50% 0%, rgba(140, 124, 169, 0.08), transparent 60%);
    z-index: -1;
    pointer-events: none;
}

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

.support-glow-ring {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-glow-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(140, 124, 169, 0.15), transparent 70%);
    animation: ringPulse 3s ease-in-out infinite;
}

.support-glow-ring::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(104, 87, 133, 0.1), transparent 70%);
    animation: ringPulse 3s ease-in-out infinite 1s;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

.support-logo {
    width: 56px;
    height: auto;
    border-radius: 14px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 20px rgba(104, 87, 133, 0.4));
}

.support-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.support-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    max-width: 360px;
    margin: 0 auto 32px;
}

.support-btn-premium {
    display: inline-flex;
    padding: 15px 40px;
    border-radius: 14px;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(140, 124, 169, 0.2), rgba(104, 87, 133, 0.1));
    color: #fff;
    border: 1px solid rgba(140, 124, 169, 0.25);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.support-btn-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.support-btn-premium:hover {
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 12px 40px rgba(104, 87, 133, 0.5);
    gap: 14px;
}

.support-btn-premium:hover::before {
    opacity: 1;
}

.support-info {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* CTA Section */
.cta {
    text-align: center;
    padding: 100px 0;
}

.cta h2 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 12px;
}

.cta p {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: rgba(40, 31, 57, 0.6);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 30px;
}

.footer-about h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1.5px;
}

.footer-about p {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 300px;
    line-height: 1.7;
}

.footer h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-right: 4px;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* ========== Pages Common ========== */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-1);
    opacity: 0.3;
}

.page-header h1 {
    font-size: 44px;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

/* Services Page */
.services-page .service-card.large {
    display: flex;
    gap: 32px;
    padding: 44px;
    text-align: right;
}

.services-page .service-card.large .service-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    font-size: 34px;
    margin-bottom: 0;
}

.services-page .service-card.large .service-content {
    flex: 1;
}

.services-page .service-card.large h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.services-page .service-card.large p {
    font-size: 15px;
    margin-bottom: 18px;
}

.services-page .service-card.large .service-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.services-page .service-card.large .service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.services-page .service-card.large .service-features li::before {
    content: '◆';
    color: var(--secondary);
    font-size: 8px;
}

/* Works Page */
.works-page .works-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.works-page .filter-btn {
    padding: 10px 22px;
    border-radius: 50px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.works-page .filter-btn.active,
.works-page .filter-btn:hover {
    background: var(--gradient-1);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(104, 87, 133, 0.3);
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(140, 124, 169, 0.15);
    border-radius: var(--radius);
    padding: 0;
    text-align: center;
    overflow: hidden;
    aspect-ratio: 768 / 432;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 30px rgba(104, 87, 133, 0.1), 0 0 60px rgba(104, 87, 133, 0.05), inset 0 0 40px rgba(140, 124, 169, 0.03);
    transition: box-shadow 0.6s ease, transform 0.6s ease;
}

.about-image:hover {
    box-shadow: 0 0 50px rgba(104, 87, 133, 0.25), 0 0 100px rgba(104, 87, 133, 0.1), inset 0 0 80px rgba(140, 124, 169, 0.06);
    transform: scale(1.01);
}

.about-image::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--radius) + 1px);
    background: linear-gradient(135deg, rgba(140, 124, 169, 0.15), transparent 40%, rgba(104, 87, 133, 0.1) 70%, rgba(179, 168, 199, 0.08));
    z-index: 0;
    pointer-events: none;
    animation: borderGlow 4s ease-in-out infinite;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: radial-gradient(ellipse at 30% 40%, rgba(140, 124, 169, 0.04), transparent 60%);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.06);
    filter: brightness(1.05) contrast(1.02);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.8s ease;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Floating orbs inside image area */
.about-image .glow-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.about-image:hover .glow-orb {
    opacity: 1;
}

.about-image .glow-orb-1 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(140, 124, 169, 0.08), transparent 70%);
    top: 10%;
    right: 10%;
    animation: orbFloat 6s ease-in-out infinite;
}

.about-image .glow-orb-2 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(104, 87, 133, 0.06), transparent 70%);
    bottom: 15%;
    left: 8%;
    animation: orbFloat 6s ease-in-out infinite 2s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(10px, -15px); }
    66% { transform: translate(-8px, 10px); }
}

.about-text h2 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
}

.value-item {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 24px 20px;
    text-align: center;
    transition: var(--transition);
}

.value-item:hover {
    background: var(--bg-card-hover);
    border-color: rgba(140, 124, 169, 0.3);
    transform: translateY(-3px);
}

.value-item .value-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.value-item h4 {
    font-size: 14px;
    font-weight: 700;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 22px;
    transition: var(--transition);
    cursor: pointer;
}

.contact-item:hover {
    background: var(--bg-card-hover);
    border-color: rgba(140, 124, 169, 0.3);
    transform: translateX(-4px);
}

.contact-item .contact-icon {
    width: 52px;
    height: 52px;
    background: rgba(140, 124, 169, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 14px;
    font-weight: 700;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 13px;
    direction: ltr;
    text-align: right;
}

.contact-form {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 40px;
}

.contact-form .form-group {
    margin-bottom: 22px;
}

.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(40, 31, 57, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(140, 124, 169, 0.12);
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
}

/* 404 Page */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.error-page .error-code {
    font-size: 140px;
    font-weight: 900;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: -5px;
}

.error-page h2 {
    font-size: 30px;
    margin: 10px 0;
}

.error-page p {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

/* Card hover effects */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(140, 124, 169, 0.08), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.service-card:hover::after,
.work-card:hover::after {
    opacity: 1;
}

.work-card {
    position: relative;
    overflow: hidden;
}

.work-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(140, 124, 169, 0.08), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.work-card > * {
    position: relative;
    z-index: 1;
}

/* Smooth scale on icons */
.service-card:hover .service-icon {
    transform: scale(1.12) rotate(-3deg);
}

.work-card:hover .preview-icon {
    transform: scale(1.15);
}

/* Card border glow on hover */
.service-card,
.work-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    border-color: rgba(140, 124, 169, 0.35);
    box-shadow: 0 12px 48px rgba(104, 87, 133, 0.2), 0 0 0 1px rgba(140, 124, 169, 0.1);
}

/* Button hover magnify */
.btn:hover {
    letter-spacing: 1px;
}

/* Support button arrow animation */
.support-btn:hover {
    gap: 14px;
}

.cta a:hover, .btn-secondary:hover {
    gap: 12px;
}

/* Title gradient animation */
.section-title,
.hero-text h1 span {
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Mouse Glow Effect */
.mouse-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(140, 124, 169, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, width 0.5s ease, height 0.5s ease;
    opacity: 0;
    will-change: transform;
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual img {
        transform: none;
    }

    .hero-visual img:hover {
        transform: scale(1.02);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .services-page .service-card.large {
        flex-direction: column;
        text-align: center;
    }

    .services-page .service-card.large .service-icon {
        margin: 0 auto 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(22, 17, 40, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--glass-border);
        gap: 20px;
        max-width: none;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-text h1 {
        font-size: 34px;
    }

    .section-title {
        font-size: 28px;
    }

    .section {
        padding: 80px 0;
    }

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

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stats-item .stats-number {
        font-size: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about p {
        margin: 0 auto;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .services-page .service-card.large .service-features {
        grid-template-columns: 1fr;
    }

    .support-card {
        padding: 30px 24px;
    }

    .support-card h2 {
        font-size: 22px;
    }
}
