/* ==================== VARIABLES & RESETS ==================== */
:root {
    --primary-dark: #0a0e27;
    --primary-darker: #050810;
    --secondary-dark: #1a1f3a;
    --accent-red: #e74c3c;
    --accent-bright-red: #ff4757;
    --accent-orange: #ff6348;
    --text-light: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: #2a2f4f;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Courier New', 'Monaco', monospace;
    background-color: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== ANIMATIONS & EFFECTS ==================== */
@keyframes glitch {
    0%, 100% {
        text-shadow: 2px 2px 0 var(--accent-red), -2px -2px 0 #00ffff;
        transform: translate(0);
    }
    20% {
        text-shadow: -2px 2px 0 var(--accent-red), 2px -2px 0 #00ffff;
        transform: translate(-2px, 2px);
    }
    40% {
        text-shadow: 2px -2px 0 var(--accent-red), -2px 2px 0 #00ffff;
        transform: translate(2px, -2px);
    }
    60% {
        text-shadow: -2px -2px 0 var(--accent-red), 2px 2px 0 #00ffff;
        transform: translate(-2px, -2px);
    }
    80% {
        text-shadow: 2px 2px 0 var(--accent-red), -2px -2px 0 #00ffff;
        transform: translate(2px, 2px);
    }
}

@keyframes glitch-slow {
    0%, 100% {
        text-shadow: 2px 2px 0 var(--accent-red), -2px -2px 0 var(--accent-bright-red);
        transform: translate(0);
    }
    50% {
        text-shadow: -2px 2px 0 var(--accent-red), 2px -2px 0 var(--accent-bright-red);
        transform: translate(-1px, 1px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px var(--accent-red);
        border-color: var(--accent-red);
    }
    50% {
        box-shadow: 0 0 20px var(--accent-bright-red);
        border-color: var(--accent-bright-red);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes code-line {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

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

@keyframes matrix-rain {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100%;
    }
}

@keyframes scan-line {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100vh);
    }
}

.glitch {
    position: relative;
    animation: glitch 3s infinite;
}

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

.glitch::before {
    animation: glitch 2s infinite;
    color: #00ffff;
    z-index: -1;
}

.glitch::after {
    animation: glitch 3s infinite;
    color: var(--accent-red);
    z-index: -2;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    border-bottom: 2px solid var(--accent-red);
    padding: 1rem 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(10, 14, 39, 0.95);
    box-shadow: 0 4px 30px rgba(231, 76, 60, 0.2);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-light);
    letter-spacing: 2px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.logo:hover {
    color: var(--accent-bright-red);
    text-shadow: 0 0 10px var(--accent-red);
}

.logo i {
    color: var(--accent-red);
}

.logo .highlight {
    color: var(--accent-bright-red);
}

/* ==================== LANGUAGE SWITCHER ==================== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 0.3rem 0.6rem;
    transition: var(--transition);
    font-family: inherit;
    letter-spacing: 1px;
}

.lang-btn:hover {
    color: var(--accent-red);
}

.lang-btn.active {
    color: var(--accent-bright-red);
    text-shadow: 0 0 10px var(--accent-red);
}

.lang-separator {
    color: var(--accent-red);
    margin: 0 0.3rem;
}

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

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    font-weight: 500;
    letter-spacing: 1px;
}

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

.nav-link:hover {
    color: var(--accent-bright-red);
}

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

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

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--accent-red);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==================== HERO SECTION ==================== */
.hero {
    margin-top: 70px;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--secondary-dark) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem;
}

.glitch-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(231, 76, 60, 0.05) 0px,
            transparent 1px,
            transparent 2px,
            rgba(231, 76, 60, 0.05) 3px
        );
    pointer-events: none;
    animation: scan-line 8s linear infinite;
    opacity: 0.3;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 71, 87, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    animation: fade-in-up 1s ease-out;
}

.hero-logo {
    font-size: 5rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
    text-shadow: 0 0 30px var(--accent-red);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1rem;
    letter-spacing: 3px;
    font-weight: 900;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-bright-red);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    animation: fade-in-up 1s ease-out 0.2s backwards;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fade-in-up 1s ease-out 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fade-in-up 1s ease-out 0.6s backwards;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 0.9rem 2.5rem;
    border: 2px solid var(--accent-red);
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-red);
    z-index: -1;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-red);
    color: var(--primary-dark);
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--accent-red);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-red);
}

.btn-secondary:hover {
    background: var(--accent-red);
    color: var(--primary-dark);
    box-shadow: 0 0 20px var(--accent-red);
    transform: translateY(-3px);
}

.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

.read-more {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    display: inline-block;
}

.read-more:hover {
    color: var(--accent-bright-red);
    transform: translateX(5px);
}

/* ==================== SOCIAL LINKS ==================== */
.social-links-hero {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fade-in-up 1s ease-out 0.8s backwards;
}

.social-icon {
    width: 45px;
    height: 45px;
    border: 2px solid var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.3rem;
}

.social-icon:hover {
    background: var(--accent-red);
    color: var(--primary-dark);
    box-shadow: 0 0 20px var(--accent-red);
    transform: translateY(-5px) rotate(5deg);
}

/* ==================== HERO VIDEO ==================== */
.hero-video {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
}

.video-placeholder {
    width: 280px;
    height: 160px;
    background: linear-gradient(135deg, var(--secondary-dark), var(--accent-red));
    border: 2px solid var(--accent-red);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.3);
    animation: pulse-glow 2s infinite;
}

.video-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(231, 76, 60, 0.6);
}

.video-placeholder i {
    font-size: 3rem;
    color: var(--text-light);
}

.video-placeholder p {
    font-size: 0.9rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* ==================== CONTAINER & SECTIONS ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    letter-spacing: 2px;
    animation: fade-in-down 0.8s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
}

/* ==================== ABOUT SECTION ==================== */
.about {
    background: var(--primary-dark);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.5rem;
    color: var(--accent-bright-red);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.features-list {
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.features-list li {
    color: var(--text-light);
    padding: 0.5rem 0;
    border-left: 3px solid var(--accent-red);
    padding-left: 1rem;
    transition: var(--transition);
}

.features-list li:hover {
    border-left-color: var(--accent-bright-red);
    transform: translateX(5px);
    color: var(--accent-bright-red);
}

.icon {
    color: var(--accent-red);
    margin-right: 0.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.about-image {
    text-align: center;
    margin-bottom: 2rem;
    grid-column: 1 / -1;
}

.about-image img {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(231, 76, 60, 0.3));
    transition: var(--transition);
}

.about-image img:hover {
    filter: drop-shadow(0 0 30px rgba(231, 76, 60, 0.6));
    transform: scale(1.05);
}

.stat-box {
    background: linear-gradient(135deg, var(--secondary-dark), rgba(231, 76, 60, 0.05));
    border: 2px solid var(--accent-red);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    animation: fade-in-up 0.8s ease-out;
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(231, 76, 60, 0.2);
    border-color: var(--accent-bright-red);
}

.stat-number {
    font-size: 2.5rem;
    color: var(--accent-bright-red);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== PROJECTS SECTION ==================== */
.projects {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--accent-red);
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 5px;
    font-weight: bold;
    letter-spacing: 1px;
    font-family: inherit;
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-red);
    color: var(--primary-dark);
    box-shadow: 0 0 15px var(--accent-red);
}

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

.project-card {
    background: var(--secondary-dark);
    border: 2px solid var(--accent-red);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    animation: fade-in-up 0.8s ease-out;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(231, 76, 60, 0.3);
    border-color: var(--accent-bright-red);
}

.project-image {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(255, 71, 87, 0.05));
    overflow: hidden;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--accent-red);
    opacity: 0.5;
    transition: var(--transition);
}

.project-card:hover .placeholder-image {
    opacity: 0.3;
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: var(--accent-bright-red);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

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

.tag {
    background: rgba(231, 76, 60, 0.2);
    color: var(--accent-red);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--accent-red);
    transition: var(--transition);
}

.tag:hover {
    background: var(--accent-red);
    color: var(--primary-dark);
}

.project-link {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--accent-bright-red);
    transform: translateX(5px);
}

/* ==================== TUTORIALS SECTION ==================== */
.tutorials {
    background: var(--primary-dark);
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.tutorial-card {
    background: var(--secondary-dark);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1.8rem;
    transition: var(--transition);
    animation: fade-in-up 0.8s ease-out;
}

.tutorial-card:hover {
    border-color: var(--accent-red);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.2);
    transform: translateY(-10px);
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.tutorial-category {
    background: rgba(231, 76, 60, 0.2);
    color: var(--accent-red);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    border: 1px solid var(--accent-red);
}

.tutorial-date {
    color: var(--text-muted);
}

.tutorial-card h3 {
    color: var(--accent-bright-red);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.tutorial-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.tutorial-snippet {
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-red);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.5;
}

.tutorial-snippet code {
    color: #00ff00;
    font-family: 'Courier New', monospace;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    color: var(--accent-bright-red);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(231, 76, 60, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--accent-red);
    background: rgba(231, 76, 60, 0.1);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 2rem;
    color: var(--accent-red);
    min-width: 50px;
    text-align: center;
}

.contact-item h4 {
    color: var(--text-light);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-item a {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    display: inline-block;
    margin-top: 0.5rem;
}

.contact-item a:hover {
    color: var(--accent-bright-red);
    transform: translateX(3px);
}

/* ==================== CONTACT FORM ==================== */
.contact-form-container h3 {
    color: var(--accent-bright-red);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    background: rgba(26, 31, 58, 0.8);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    padding: 0.9rem;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.3);
    background: rgba(26, 31, 58, 0.95);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.contact-form .btn {
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary-darker);
    border-top: 2px solid var(--accent-red);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-bright-red);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.footer-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: var(--accent-red);
    transform: translateX(3px);
    display: inline-block;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-section .social-links a {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.footer-section .social-links a:hover {
    background: var(--accent-red);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--accent-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.heart {
    color: var(--accent-red);
    animation: float 1s ease-in-out infinite;
}

/* ==================== RTL SUPPORT ==================== */
html[lang="ar"] {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] .logo,
html[lang="ar"] .nav-container {
    flex-direction: row-reverse;
}

html[lang="ar"] .nav-links {
    flex-direction: row-reverse;
}

html[lang="ar"] .nav-link::after {
    left: auto;
    right: 0;
}

html[lang="ar"] .menu-toggle {
    order: -1;
}

html[lang="ar"] .lang-switcher {
    flex-direction: row-reverse;
}

html[lang="ar"] .lang-separator {
    margin: 0 0.3rem;
}

html[lang="ar"] .about-content {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] .contact-item {
    flex-direction: row-reverse;
}

html[lang="ar"] .footer-content {
    direction: rtl;
    text-align: right;
}

html[lang="ar"] .features-list li {
    border-left: none;
    border-right: 3px solid var(--accent-red);
    padding-left: 0;
    padding-right: 1rem;
}

html[lang="ar"] .features-list li:hover {
    border-right-color: var(--accent-bright-red);
    transform: translateX(-5px);
}

html[lang="ar"] .tutorial-snippet {
    border-left: none;
    border-right: 3px solid var(--accent-red);
}

html[lang="ar"] .project-link:hover {
    transform: translateX(-5px);
}

html[lang="ar"] .read-more:hover {
    transform: translateX(-5px);
}

html[lang="ar"] .stat-box:hover {
    transform: translateY(-10px);
}

html[lang="ar"] .hero-buttons {
    flex-direction: row-reverse;
}

html[lang="ar"] .contact-item:hover {
    transform: translateX(-5px);
}

html[lang="ar"] .footer-section ul li a:hover {
    transform: translateX(-3px);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 2rem;
        display: none;
        gap: 1.5rem;
        border-bottom: 2px solid var(--accent-red);
    }

    html[lang="ar"] .nav-links {
        right: auto;
        left: 0;
    }

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

    .lang-switcher {
        order: 2;
        margin: 0 1rem;
    }

    .hero {
        margin-top: 70px;
        min-height: auto;
        padding: 3rem 1rem;
    }

    .hero-logo {
        font-size: 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-video {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 3rem;
    }

    .video-placeholder {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

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

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

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

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

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

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons a {
        width: 100%;
        max-width: 300px;
    }

    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .stat-box {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .filter-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
    }

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

    .hero-logo {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 50%;
    border: 3px solid #ff4757;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.5);
}
