:root {
    --primary: #2563EB;
    --primary-light: #3B82F6;
    --secondary: #0F172A;
    --accent: #38BDF8;
    --bg: #FFFFFF;
    --light-gray: #F8FAFC;
    --text: #0F172A;
    --text-secondary: #64748B;
    --gray: #94A3B8;
    --border: #E5E7EB;
    --glass: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(226, 232, 240, 0.6);
    --shadow: rgba(0, 0, 0, 0.04);
    --shadow-lg: rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] {
    --bg: #0B1121;
    --secondary: #0F172A;
    --light-gray: #111827;
    --text: #F1F5F9;
    --text-secondary: #94A3B8;
    --border: #1E293B;
    --glass: rgba(15, 23, 42, 0.78);
    --glass-border: rgba(51, 65, 85, 0.4);
    --shadow: rgba(0, 0, 0, 0.2);
    --shadow-lg: rgba(0, 0, 0, 0.4);
}

html[dir="rtl"] {
    --font: 'Cairo', sans-serif;
    font-family: var(--font);
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--primary);
    color: white;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.12;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
    animation: blobFloat 20s ease-in-out infinite alternate;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    bottom: -150px;
    left: -150px;
    animation: blobFloat 25s ease-in-out infinite alternate-reverse;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: blobFloat 18s ease-in-out infinite alternate;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 1.25rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    padding: 0.85rem 8%;
    box-shadow: 0 1px 0 var(--glass-border);
}

.logo {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -1.5px;
    position: relative;
    z-index: 1;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    padding: 0.4rem 0;
    transition: color 0.3s ease;
    letter-spacing: -0.01em;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
    color: var(--text);
}

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

.nav-links a.active {
    color: var(--text);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.lang-dropdown {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    font-family: var(--font);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.lang-current:hover {
    border-color: var(--primary);
    background: var(--glass);
}

.flag-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.lang-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.lang-dropdown.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--glass);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.4rem;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(0.96);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px var(--shadow-lg);
    z-index: 100;
}

.lang-dropdown.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: rgba(37, 99, 235, 0.08);
}

.lang-option:active {
    transform: scale(0.97);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.toggle-track {
    width: 48px;
    height: 26px;
    background: var(--border);
    border-radius: 13px;
    position: relative;
    transition: background 0.4s ease;
    display: flex;
    align-items: center;
    padding: 0 5px;
    justify-content: space-between;
}

[data-theme="dark"] .toggle-track {
    background: var(--secondary);
    border-color: var(--border);
}

.toggle-thumb {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

[data-theme="dark"] .toggle-thumb {
    transform: translateX(22px);
    background: var(--primary);
}

.toggle-icon {
    width: 12px;
    height: 12px;
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
    transition: opacity 0.3s ease;
}

.sun-icon {
    opacity: 0.6;
}

.moon-icon {
    opacity: 0.3;
}

[data-theme="dark"] .sun-icon {
    opacity: 0.3;
}

[data-theme="dark"] .moon-icon {
    opacity: 0.8;
    color: var(--accent);
}

.nav-cta.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hero {
    min-height: 100vh;
    padding: 120px 8% 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    padding: 0.45rem 1rem 0.45rem 0.8rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    width: fit-content;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1.05;
    color: var(--text);
    margin: 0;
}

.typewriter-wrapper {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.typewriter-prefix,
.typewriter-suffix {
    color: var(--primary);
    opacity: 0.6;
    font-weight: 500;
}

#typewriter {
    color: var(--primary);
    font-weight: 700;
}

.typewriter-cursor {
    color: var(--primary);
    font-weight: 100;
    animation: blink 1s step-end infinite;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 520px;
    font-weight: 400;
}

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

.btn {
    padding: 0.85rem 1.8rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--shadow);
}

.hero-socials {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.social-btn i {
    width: 18px;
    height: 18px;
}

.social-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.dashboard {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.dash-card {
    background: var(--glass);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    box-shadow: 0 8px 32px var(--shadow), 0 1px 3px var(--shadow);
    transition: all 0.3s ease;
}

.dash-card:hover {
    box-shadow: 0 12px 48px var(--shadow-lg);
    transform: translateY(-2px);
}

.laptop-card {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    z-index: 5;
}

.laptop-top {
    height: 10px;
    background: var(--secondary);
    border-radius: 16px 16px 0 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.laptop-notch {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 4px 4px;
}

.laptop-screen {
    flex: 1;
    background: #0F172A;
    padding: 8px;
    overflow: hidden;
}

.editor {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
    background: #1E293B;
}

.editor-header {
    background: #0F172A;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px solid #1E293B;
}

.editor-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.editor-dot.red { background: #EF4444; }
.editor-dot.yellow { background: #F59E0B; }
.editor-dot.green { background: #10B981; }

.editor-file {
    margin-left: 8px;
    font-size: 0.65rem;
    color: #94A3B8;
    font-weight: 500;
}

.editor-body {
    padding: 8px 10px;
    font-size: 0.6rem;
    line-height: 1.5;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: #CBD5E1;
}

.editor-body .line { white-space: nowrap; }
.editor-body .i1 { padding-left: 12px; }
.editor-body .i2 { padding-left: 24px; }
.editor-body .i3 { padding-left: 36px; }
.editor-body .kr { color: #818CF8; }
.editor-body .f { color: #F472B6; }
.editor-body .s { color: #34D399; }
.editor-body .e { color: #FACC15; }
.editor-body .a { color: #F472B6; }

.terminal-card {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    overflow: hidden;
    padding: 0;
}

.terminal-header {
    background: rgba(15, 23, 42, 0.1);
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.terminal-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.terminal-status {
    font-size: 0.6rem;
    color: #10B981;
    font-weight: 500;
}

.terminal-body {
    padding: 8px 12px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.6rem;
    line-height: 1.6;
    color: #64748B;
}

.terminal-line .prompt {
    color: var(--primary);
    font-weight: 700;
    margin-right: 4px;
}

.terminal-line.success {
    color: #10B981;
}

.terminal-line .hl {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-style: dotted;
}

.analytics-card {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    padding: 12px 14px;
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.analytics-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.analytics-badge {
    font-size: 0.6rem;
    font-weight: 700;
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    padding: 1px 6px;
    border-radius: 6px;
}

.analytics-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 40px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary), var(--accent));
    border-radius: 2px 2px 0 0;
    opacity: 0.7;
    transition: height 1s ease;
    min-height: 4px;
}

.analytics-stat {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 8px;
}

.analytics-num {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
}

.analytics-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.github-card {
    grid-column: 1;
    grid-row: 2;
    align-self: stretch;
    padding: 12px 14px;
}

.github-header {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.github-icon {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
}

.github-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.github-graph {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.graph-row {
    display: flex;
    gap: 3px;
}

.graph-cell {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: var(--primary);
}

.graph-cell.l2 { opacity: 0.2; }
.graph-cell.l3 { opacity: 0.3; }
.graph-cell.l4 { opacity: 0.4; }
.graph-cell.l5 { opacity: 0.5; }
.graph-cell.l6 { opacity: 0.65; }
.graph-cell.l7 { opacity: 0.75; }
.graph-cell.l8 { opacity: 0.85; }
.graph-cell.l9 { opacity: 1; }

.stats-card {
    grid-column: 1;
    grid-row: 3;
    align-self: stretch;
    padding: 12px 14px;
}

.stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.stats-num {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
}

.stats-lbl {
    font-size: 0.6rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stats-div {
    width: 1px;
    height: 24px;
    background: var(--glass-border);
}

.coffee-card {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
}

.coffee-emoji {
    font-size: 1.3rem;
}

.coffee-text {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.browser-card {
    grid-column: 1 / 3;
    grid-row: 4;
    align-self: stretch;
    padding: 0;
    overflow: hidden;
}

.browser-bar {
    background: rgba(15, 23, 42, 0.08);
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.br-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.br-dot.red { background: #EF4444; }
.br-dot.yellow { background: #F59E0B; }
.br-dot.green { background: #10B981; }

.br-url {
    margin-left: 4px;
    font-size: 0.55rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.browser-content {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.br-line {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
}

.br-line.short {
    width: 40%;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-bottom: 10px;
    position: relative;
    z-index: 1;
}

.scroll-text {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

.skill-pill {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 0.85rem;
    border-radius: 30px;
    box-shadow: 0 4px 20px var(--shadow);
    z-index: 2;
    font-size: 0.75rem;
    font-weight: 500;
}

.pill-icon {
    font-size: 1rem;
}

.pill-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pill-name {
    font-weight: 700;
    color: var(--text);
    font-size: 0.75rem;
    line-height: 1.2;
}

.pill-exp {
    font-size: 0.6rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.2;
}

.pill-1 { top: 15%; right: 38%; animation: pillFloat 7s ease-in-out infinite; }
.pill-2 { top: 10%; right: 8%; animation: pillFloat 8s ease-in-out infinite 1s; }
.pill-3 { top: 35%; right: 42%; animation: pillFloat 9s ease-in-out infinite 2s; }
.pill-4 { top: 48%; right: 6%; animation: pillFloat 7.5s ease-in-out infinite 0.5s; }
.pill-5 { top: 22%; right: 48%; animation: pillFloat 8.5s ease-in-out infinite 1.5s; }
.pill-6 { top: 12%; right: 22%; animation: pillFloat 7s ease-in-out infinite 2.5s; }
.pill-7 { top: 62%; right: 40%; animation: pillFloat 8s ease-in-out infinite 3s; }
.pill-8 { top: 55%; right: 12%; animation: pillFloat 9s ease-in-out infinite 0.8s; }

section {
    padding: 100px 8%;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: -1.5px;
    color: var(--text);
}

.section-title span {
    color: var(--primary);
}

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

.about-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

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

.service-card {
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px var(--shadow);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px var(--shadow-lg);
}

.service-icon {
    color: var(--primary);
    margin-bottom: 1.5rem;
    width: 36px;
    height: 36px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.55rem 1.2rem;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: transparent;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-family: var(--font);
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

.project-card {
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow);
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px var(--shadow-lg);
}

.project-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tag {
    font-size: 0.7rem;
    background: var(--light-gray);
    border: 1px solid var(--border);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
    color: var(--text-secondary);
}

.project-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
}

.project-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--primary);
}

.timeline-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.timeline {
    position: relative;
    border-left: 2px solid var(--border);
    padding-left: 2rem;
    margin-left: 10px;
}

html[dir="rtl"] .timeline {
    border-left: none;
    border-right: 2px solid var(--border);
    padding-left: 0;
    padding-right: 2rem;
    margin-right: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: calc(-2rem - 7px);
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 3px var(--primary);
}

html[dir="rtl"] .timeline-dot {
    left: auto;
    right: calc(-2rem - 7px);
}

.timeline-date {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.timeline-h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.testimonial-slider {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    height: 200px;
}

.testimonial-track {
    display: flex;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card {
    min-width: 700px;
    padding: 2rem 2.5rem;
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.testi-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--light-gray);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.testi-text {
    font-style: italic;
    font-size: 1rem;
    max-width: 550px;
    line-height: 1.6;
    color: var(--text);
}

.testi-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.85rem;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary);
}

.contact-item-icon {
    color: var(--primary);
    background: var(--light-gray);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-det h4 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.contact-item-det p {
    font-weight: 600;
    color: var(--text);
}

.contact-form {
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: 0 16px 48px var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    outline: none;
    font-family: var(--font);
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

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

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    display: none;
    z-index: 99;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.scroll-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

/* ============================================
   PRELOADER PREMIUM
   ============================================ */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loader-logo {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -3px;
    color: var(--text);
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 2s ease-in-out infinite;
}

.loader-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 200px;
}

.loader-bar-track {
    width: 100%;
    height: 3px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.loader-percent {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 9995;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ============================================
   CURSOR IMPROVED
   ============================================ */
.custom-cursor {
    width: 6px;
    height: 6px;
    background: var(--primary);
    position: fixed;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

.custom-cursor.hovering {
    width: 12px;
    height: 12px;
    background: var(--accent);
}

.custom-cursor-blur {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--primary);
    position: fixed;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.3;
    transition: all 0.2s ease;
}

.custom-cursor-blur.hovering {
    width: 60px;
    height: 60px;
    opacity: 0.5;
    border-color: var(--accent);
}

.cursor-glow {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06), transparent 70%);
    position: fixed;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transition: all 0.3s ease;
}

/* ============================================
   PARTICLES CANVAS
   ============================================ */
.particles-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* ============================================
   NOISE TEXTURE
   ============================================ */
.bg-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.02;
    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)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ============================================
   HERO TRUST BADGES
   ============================================ */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.trust-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94A3B8;
}

.trust-dot.online {
    background: #10B981;
    animation: pulse 2s ease-in-out infinite;
}

.trust-icon {
    width: 12px;
    height: 12px;
}

/* ============================================
   ABOUT - PROFILE CARD
   ============================================ */
.about-left {
    display: flex;
    justify-content: center;
}

.profile-card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 16px 48px var(--shadow);
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary), transparent);
    opacity: 0.08;
    top: -50px;
    right: -50px;
    border-radius: 50%;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4px;
    overflow: hidden;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    display: block;
}

.profile-avatar-icon {
    width: 60px;
    height: 60px;
    color: white;
}

.profile-status {
    width: 14px;
    height: 14px;
    background: #10B981;
    border: 2px solid var(--bg);
    border-radius: 50%;
    position: absolute;
    bottom: 2px;
    right: 2px;
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.profile-role {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.profile-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.profile-info-item i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--primary);
}

.profile-langs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.lang-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--light-gray);
    border: 1px solid var(--border);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.lang-tag small {
    font-weight: 400;
    opacity: 0.7;
}

.lang-tag.active {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.06);
}

.about-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
}

.about-soft-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.soft-skill {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.about-stat {
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.about-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow);
}

.about-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

.about-stat-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 2px;
}

/* ============================================
   SKILLS - INTERACTIVE TECH CARDS
   ============================================ */
.skills-filter {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.skills-filter-btn {
    padding: 0.45rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-family: var(--font);
    transition: all 0.3s ease;
}

.skills-filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.skills-grid.interactive {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.tech-card {
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(37, 99, 235, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tech-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 32px var(--shadow-lg);
}

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

.tech-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    position: relative;
}

.tech-icon-wrapper svg {
    width: 32px;
    height: 32px;
    display: block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tech-card:hover .tech-icon-wrapper {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.15), 0 8px 32px rgba(0,0,0,0.1);
    transform: scale(1.08) rotate(5deg);
}

.tech-card:hover .tech-icon-wrapper svg {
    transform: scale(1.1);
}

.tech-name {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.tech-level {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.tech-level-bar {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 0;
}

.tech-meta {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   CERTIFICATES
   ============================================ */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.cert-card {
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: all 0.4s ease;
}

.cert-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 12px 32px var(--shadow-lg);
}

.cert-icon {
    width: 36px;
    height: 36px;
    color: var(--primary);
}

.cert-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.cert-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.cert-date {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

.cert-verify {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.3s ease;
}

.cert-verify i {
    width: 14px;
    height: 14px;
}

.cert-verify:hover {
    gap: 0.5rem;
}

/* ============================================
   GITHUB SECTION
   ============================================ */
.github-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.github-contrib-graph {
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.contrib-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contrib-header i {
    width: 18px;
    height: 18px;
}

.contrib-grid {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 1rem;
}

.contrib-row {
    display: flex;
    gap: 3px;
}

.contrib-cell {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: var(--border);
    transition: all 0.2s ease;
}

.contrib-cell.l1 { background: rgba(37, 99, 235, 0.1); }
.contrib-cell.l2 { background: rgba(37, 99, 235, 0.25); }
.contrib-cell.l3 { background: rgba(37, 99, 235, 0.45); }
.contrib-cell.l4 { background: rgba(37, 99, 235, 0.65); }
.contrib-cell.l5 { background: rgba(37, 99, 235, 0.85); }
.contrib-cell.l6 { background: var(--primary); }

.contrib-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.contrib-stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contrib-num {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
}

.contrib-stat span:last-child {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.github-repos {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.repo-card {
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    transition: all 0.3s ease;
}

.repo-card:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.repo-top {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.repo-top i {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

.repo-top h4 {
    font-size: 0.85rem;
    font-weight: 700;
}

.repo-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.repo-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.repo-lang {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
}

.repo-lang::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lang, var(--primary));
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 24px var(--shadow);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px var(--shadow-lg);
}

.blog-img {
    height: 160px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0.75rem;
    position: relative;
}

.blog-category {
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.blog-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.blog-date {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.blog-content h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.blog-content p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-top: auto;
    transition: gap 0.3s ease;
}

.blog-link i {
    width: 14px;
    height: 14px;
}

.blog-link:hover {
    gap: 0.5rem;
}

/* ============================================
   CONTACT IMPROVED
   ============================================ */
.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-action-btn {
    justify-content: center;
    padding: 0.7rem;
    font-size: 0.85rem;
}

.form-error {
    font-size: 0.72rem;
    color: #EF4444;
    margin-top: 4px;
    display: none;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #EF4444;
}

.form-group.error .form-error {
    display: block;
}

.form-group.valid input,
.form-group.valid textarea {
    border-color: #10B981;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.copy-btn i {
    width: 16px;
    height: 16px;
}

.copy-btn:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
}

.copy-btn.copied {
    color: #10B981;
}

.form-success {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-sm);
    color: #10B981;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-success.show {
    display: flex;
}

.form-success i {
    width: 20px;
    height: 20px;
}

/* ============================================
   FLOATING ACTION BUTTON
   ============================================ */
.fab-container {
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    z-index: 98;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.fab-main {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    position: relative;
}

.fab-main:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.fab-icon-main {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.fab-container.open .fab-icon-main {
    transform: rotate(45deg);
}

.fab-menu {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fab-container.open .fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.fab-item {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow);
}

.fab-item i {
    width: 16px;
    height: 16px;
}

.fab-item:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* ============================================
   LIVE CLOCK
   ============================================ */
.live-clock {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 98;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.live-clock i {
    width: 12px;
    height: 12px;
    color: var(--primary);
}

.clock-sep {
    opacity: 0.3;
}

/* ============================================
   FOOTER IMPROVED
   ============================================ */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 8% 2rem;
    background: var(--light-gray);
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 280px;
}

.footer-socials {
    display: flex;
    gap: 0.6rem;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-link i {
    width: 16px;
    height: 16px;
}

.footer-social-link:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

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

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact-info h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.footer-contact-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.footer-availability {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: #10B981;
    margin-top: 0.5rem;
}

.footer-availability .trust-dot {
    width: 6px;
    height: 6px;
    background: #10B981;
    animation: pulse 2s ease-in-out infinite;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.82rem;
}

/* ============================================
   CONFETTI
   ============================================ */
.confetti-piece {
    position: fixed;
    z-index: 10001;
    pointer-events: none;
    animation: confettiFall linear forwards;
}
