/**
 * Q8iDev Core Premium Stylesheet
 * High-End Tech Dark Theme & Glassmorphic CSS System
 */

/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
:root {
    --bg-dark: #07080f;
    --bg-darker: #04050a;
    --card-bg: rgba(13, 17, 28, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(124, 58, 237, 0.4);
    
    --primary: #7C3AED;
    --primary-glow: rgba(124, 58, 237, 0.25);
    --secondary: #06B6D4;
    --secondary-glow: rgba(6, 182, 212, 0.25);
    
    --text-white: #ffffff;
    --text-main: #E5E7EB;
    --text-muted: #9CA3AF;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Outfit', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base Elements Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-ar);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

input, select, textarea, button {
    font-family: inherit;
}

/* ==========================================================================
   Ambient Glow Effects
   ========================================================================== */
.ambient-glow {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(140px);
    opacity: 0.15;
    mix-blend-mode: screen;
}

.bg-glow-primary {
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    animation: floatingGlow 25s infinite alternate ease-in-out;
}

.bg-glow-secondary {
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    animation: floatingGlow 20s infinite alternate-reverse ease-in-out;
}

@keyframes floatingGlow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -50px) scale(1.1); }
    100% { transform: translate(-20px, 40px) scale(0.95); }
}

/* ==========================================================================
   Glassmorphism Utility
   ========================================================================== */
.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: var(--card-hover-border);
    box-shadow: 0 10px 40px 0 rgba(124, 58, 237, 0.15);
}

/* ==========================================================================
   Sticky Navbar Header
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 8, 15, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
}

.navbar-scrolled {
    background: rgba(4, 5, 10, 0.9);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Brand */
.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 0.5px;
    color: var(--text-white);
}

.logo-bracket {
    color: var(--secondary);
    font-weight: 700;
}

.logo-text {
    background: linear-gradient(135deg, var(--text-white) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 3px;
}

/* Desktop Links */
.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 5px 0;
}

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-start {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-white);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

/* Hamburger Toggler */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile dropdown */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--card-border);
    padding: 20px;
    gap: 15px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 999;
}

.mobile-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mobile-link.active, .mobile-link:hover {
    color: var(--text-white);
    padding-right: 8px;
}

.mobile-btn-start {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-white);
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 10px;
}

/* ==========================================================================
   Page Layout & Typography
   ========================================================================== */
.page-content {
    padding-top: 80px; /* Accounts for fixed navbar */
    min-height: calc(100vh - 80px);
}

.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-tag {
    font-family: var(--font-en);
    color: var(--secondary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-white);
    background: linear-gradient(135deg, #ffffff 30%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    display: flex;
    align-items: center;
    min-height: 80vh;
    padding: 60px 20px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    text-align: right;
}

.hero-greeting {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 12px;
    display: block;
}

.hero-name {
    font-size: 56px;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero-name span {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title-text {
    font-size: 26px;
    font-weight: 700;
    color: #c084fc;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 620px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-white);
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Hero Tech Graphics */
.hero-graphic {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.graphic-ring {
    position: absolute;
    width: 320px;
    height: 320px;
    border: 2px dashed rgba(6, 182, 212, 0.25);
    border-radius: 50%;
    animation: rotateClockwise 35s infinite linear;
}

.graphic-ring-inner {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 50%;
    animation: rotateCounter 25s infinite linear;
}

.graphic-core {
    width: 180px;
    height: 180px;
    background: var(--card-bg);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px var(--primary-glow);
    z-index: 2;
    animation: pulseGlow 4s infinite alternate ease-in-out;
}

.graphic-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
}

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

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

@keyframes pulseGlow {
    from { box-shadow: 0 0 20px var(--primary-glow); border-color: var(--primary); }
    to { box-shadow: 0 0 50px rgba(6, 182, 212, 0.4); border-color: var(--secondary); }
}

/* ==========================================================================
   About Section & Bio
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: center;
}

.about-details h3 {
    font-size: 24px;
    color: var(--text-white);
    margin-bottom: 15px;
}

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

/* Stats Badges Dashboard Grid */
.stats-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    padding: 20px;
    text-align: center;
}

.stat-num {
    font-family: var(--font-en);
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 5px;
}

.stat-title {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

/* Skills Badge Wrap */
.skills-container {
    margin-top: 40px;
}

.skills-title {
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 15px;
    font-weight: 700;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.skill-badge i {
    font-size: 13px;
    color: var(--secondary);
}

.skill-badge:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
    color: var(--text-white);
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
}

.service-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--secondary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.service-price {
    font-size: 13px;
    color: var(--text-muted);
}

.service-price span {
    font-family: var(--font-en);
    font-size: 18px;
    font-weight: 700;
    color: var(--success);
}

.btn-order-service {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-order-service:hover {
    color: var(--text-white);
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: var(--text-white);
    box-shadow: 0 4px 15px var(--primary-glow);
}

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

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.05);
}

.project-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(7, 8, 15, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
}

.status-completed {
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.3);
}

.status-in_development {
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.3);
}

.project-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-tags {
    font-family: var(--font-en);
    font-size: 12px;
    color: var(--secondary);
    margin-bottom: 8px;
    font-weight: 600;
}

.project-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-actions {
    display: flex;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    font-size: 14px;
    font-weight: 600;
}

.project-link {
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

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

/* ==========================================================================
   Tools Page (Interactive Applications)
   ========================================================================== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
}

.tool-card {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-card h3 i {
    color: var(--secondary);
}

.tool-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-open-tool {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.tool-card:hover .btn-open-tool {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Tool View Overlay Modal or Active Tool Content Panel */
.active-tool-workspace {
    margin-top: 30px;
    padding: 30px;
}

.tool-input-group {
    margin-bottom: 20px;
}

.tool-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-white);
}

.tool-textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-white);
    padding: 12px;
    font-size: 14px;
    resize: vertical;
    transition: var(--transition);
}

.tool-textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.tool-results-panel {
    background: #030408;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    position: relative;
}

.btn-copy-result {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    transition: var(--transition);
}

.btn-copy-result:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.code-output {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #38BDF8;
    white-space: pre-wrap;
    direction: ltr;
    text-align: left;
    overflow-x: auto;
    display: block;
}

/* ==========================================================================
   Blog & Post Section
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.blog-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card img {
    aspect-ratio: 16/10;
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-read-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card:hover .blog-read-more {
    color: var(--secondary);
}

/* Single Post View styling */
.post-layout {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 40px auto;
}

.post-header {
    margin-bottom: 30px;
}

.post-category {
    background: rgba(124, 58, 237, 0.15);
    color: #c084fc;
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

.post-meta-details {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
}

.post-featured-img {
    border-radius: 16px;
    width: 100%;
    margin-bottom: 30px;
}

.post-content {
    font-size: 16px;
    line-height: 1.9;
    color: #D1D5DB;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2, .post-content h3 {
    color: var(--text-white);
    margin: 35px 0 15px;
}

/* ==========================================================================
   Interactive Input Forms (Contact & Start Project)
   ========================================================================== */
.form-panel {
    max-width: 650px;
    margin: 0 auto;
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-white);
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-white);
    padding: 12px 16px;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

/* Math CAPTCHA style */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
}

.captcha-label {
    font-family: var(--font-en);
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    direction: ltr;
}

.btn-submit-form {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-white);
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: var(--transition);
}

.btn-submit-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
}

/* System Success / Error Alerts */
.system-alert {
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34D399;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #F87171;
}

/* ==========================================================================
   Footer Aesthetics
   ========================================================================== */
.main-footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 60px;
    position: relative;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 35px;
    height: 2px;
    background: var(--secondary);
    bottom: 0;
    right: 0;
}

.footer-brand .logo {
    margin-bottom: 15px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
}

.social-icon:hover {
    color: var(--text-white);
    transform: translateY(-3px);
}

.social-icon.wa:hover { background: #25D366; border-color: #25D366; }
.social-icon.tg:hover { background: #0088cc; border-color: #0088cc; }
.social-icon.gh:hover { background: #333333; border-color: #333333; }
.social-icon.yt:hover { background: #ff0000; border-color: #ff0000; }

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

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 10px;
    color: var(--secondary);
    transition: var(--transition);
}

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

.footer-links a:hover i {
    transform: translateX(-5px);
}

.footer-newsletter p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    overflow: hidden;
    padding: 3px;
}

.newsletter-form input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-white);
    padding: 10px 15px;
    font-size: 13px;
    flex-grow: 1;
}

.btn-news {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

.footer-bottom {
    background: rgba(4, 5, 10, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 20px;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-bottom span {
    color: var(--secondary);
    font-weight: 600;
}

/* Floating Actions Buttons bottom right */
.floating-actions {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.float-btn:hover {
    transform: scale(1.1) rotate(8deg);
}

.float-whatsapp { background-color: #25D366; }
.float-telegram { background-color: #0088cc; }

/* ==========================================================================
   Scroll-Reveal Animations
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Back-to-Top Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    left: 25px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

/* ==========================================================================
   Pagination Component
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.pagination a {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.pagination a:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: var(--primary);
    color: var(--text-white);
}

.pagination .active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-white);
    border: none;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ==========================================================================
   Confirmation Modal
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.25s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-box h3 {
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 10px;
}

.modal-box p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   Empty State
   ========================================================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 15px;
    display: block;
}

.empty-state p {
    font-size: 15px;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--secondary);
}

.breadcrumbs a:hover {
    color: var(--text-white);
}

/* ==========================================================================
   Visually Hidden (Screen Reader Only)
   ========================================================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Responsive — Tablet (≤992px)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-graphic {
        order: 1;
    }

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

    .hero-desc {
        max-width: 100%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .services-grid,
    .projects-grid,
    .blog-grid,
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .captcha-container {
        flex-wrap: wrap;
    }

    .post-meta-details {
        flex-wrap: wrap;
        gap: 10px;
    }

    .form-panel {
        max-width: 100%;
    }
}

/* ==========================================================================
   Responsive — Mobile (≤768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu,
    .nav-actions .btn-start {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Layout */
    .section {
        padding: 60px 15px;
    }

    .section-desc {
        font-size: 14px;
    }

    /* Hero */
    .hero-name {
        font-size: 36px;
    }

    .hero-title-text {
        font-size: 20px;
    }

    .hero-graphic {
        transform: scale(0.85);
    }

    .graphic-ring {
        width: 260px;
        height: 260px;
    }

    .graphic-ring-inner {
        width: 200px;
        height: 200px;
    }

    .graphic-core {
        width: 140px;
        height: 140px;
    }

    .graphic-avatar {
        width: 120px;
        height: 120px;
    }

    /* Grid components */
    .services-grid,
    .projects-grid,
    .blog-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .tool-card {
        padding: 22px;
    }

    .project-info,
    .blog-info {
        padding: 20px;
    }

    /* Stats */
    .stats-dashboard {
        grid-template-columns: 1fr;
    }

    /* Filters */
    .projects-filter {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        border-radius: 12px;
        padding: 6px;
    }

    .btn-news {
        width: 100%;
        border-radius: 8px;
        height: 40px;
    }

    /* Skills */
    .skill-badge {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Blog Post */
    .post-layout {
        margin: 20px auto;
        padding: 0 5px;
    }

    .project-actions {
        flex-wrap: wrap;
    }

    /* About page buttons */
    .about-details div[style] {
        flex-wrap: wrap;
    }

    /* Timeline */
    .timeline-item {
        gap: 12px;
    }

    .timeline-content {
        padding: 15px;
    }

    .timeline-bullet {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* ==========================================================================
   Responsive — Small Phones (≤480px)
   ========================================================================== */
@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding: 30px 15px;
    }

    .hero-name {
        font-size: clamp(26px, 8vw, 36px);
    }

    .hero-greeting {
        font-size: 15px;
    }

    .hero-title-text {
        font-size: 17px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 40px 12px;
    }

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

    .section-desc {
        font-size: 13px;
    }

    /* Service cards */
    .service-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .service-card h3 {
        font-size: 17px;
    }

    .service-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    /* Blog */
    .blog-title {
        font-size: 16px;
    }

    .blog-excerpt {
        font-size: 12px;
    }

    /* Post */
    .post-content {
        font-size: 14px;
        line-height: 1.7;
    }

    /* About */
    .about-details h3 {
        font-size: 20px;
        text-align: center;
    }

    .about-details p {
        font-size: 14px;
    }

    /* Forms */
    .form-panel {
        padding: 20px 12px;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 13px;
    }

    .btn-submit-form {
        font-size: 14px;
        padding: 12px;
    }

    /* Breadcrumbs */
    .breadcrumbs {
        font-size: 12px;
    }

    /* Modal */
    .modal-box {
        padding: 20px;
        border-radius: 12px;
    }

    /* Floating buttons */
    .floating-actions {
        bottom: 15px;
        right: 15px;
    }

    .float-btn {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .back-to-top {
        bottom: 80px;
        left: 15px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    /* Pagination */
    .pagination a,
    .pagination span {
        min-width: 34px;
        height: 34px;
        font-size: 12px;
    }

    /* Timeline on small phones */
    .timeline-content h4 {
        font-size: 14px;
    }

    .timeline-content p {
        font-size: 13px;
    }

    .timeline-content span {
        font-size: 11px;
    }
}

/* ==========================================================================
   Accessibility — Focus & Motion
   ========================================================================== */
*:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.form-control:focus-visible,
.admin-form-control:focus-visible {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

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

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }

    .ambient-glow {
        display: none;
    }
}

/* ==========================================================================
   Print Stylesheet
   ========================================================================== */
@media print {
    .navbar,
    .ambient-glow,
    .floating-actions,
    .back-to-top,
    .main-footer,
    .mobile-toggle,
    .mobile-menu {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .glass-panel {
        background: #fff;
        border: 1px solid #ddd;
        box-shadow: none;
        backdrop-filter: none;
    }

    .page-content {
        padding-top: 0;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 12px;
        color: #666;
    }
}
