/* Basics */

:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --text-color: #333;
    --text-light: #777;
    --bg-color: #fff;
    --card-bg: #f9f9f9;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-color: #ecf0f1;
    --light-color: #2c3e50;
    --text-color: #f5f5f5;
    --text-light: #bdc3c7;
    --bg-color: #34495e;
    --card-bg: #2c3e50;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: all 0.3s ease;
}


/* General Styling */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.highlight {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 10px;
}

.btn.primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn.primary:hover {
    background: transparent;
    color: var(--primary-color);
}

.btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
    background: var(--primary-color);
    color: white;
}


/* Navigation */

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    padding: 15px 50px;
    background-color: rgba(0, 0, 0, 0.9);
}

#navbar ul {
    display: flex;
    list-style: none;
}

#navbar ul li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#navbar ul li a:hover {
    color: var(--primary-color);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    color: var(--primary-color);
    transform: rotate(30deg);
}


/* Hero Section */

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(46, 204, 113, 0.1) 100%);
    padding-top: 80px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.profile-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 10px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


/* About Section */

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 2;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.personal-info {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-label {
    font-weight: 600;
    margin-right: 10px;
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
}


/* Skills Section */

.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.skill-category {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.skill-category h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.skill-item {
    margin-bottom: 20px;
}

.skill-name {
    margin-bottom: 10px;
    font-weight: 600;
}

.skill-bar {
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease;
}


/* Experience & Education Sections */

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 3px solid var(--primary-color);
}

.timeline-date {
    position: absolute;
    left: -180px;
    top: 20px;
    width: 120px;
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-content ul {
    padding-left: 20px;
}

.timeline-content li {
    margin-bottom: 10px;
}


/* Contact Section */

.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    margin-right: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.contact-form {
    flex: 2;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}


/* Footer */

footer {
    text-align: center;
    padding: 20px;
    background: var(--dark-color);
    color: white;
}


/* Scroll Effects */

[data-scroll] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

[data-scroll="in"] {
    opacity: 1;
}


/* Responsive Design */

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .about-content {
        flex-direction: column;
    }
    .timeline-date {
        position: static;
        width: auto;
        text-align: left;
        margin-bottom: 10px;
        color: var(--text-color);
    }
    .timeline::before {
        left: 10px;
    }
    .timeline-item::before {
        left: -30px;
    }
    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
    .personal-info {
        grid-template-columns: 1fr;
    }
    .about-stats {
        grid-template-columns: 1fr;
    }
    #navbar ul {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-text h2 {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .section {
        padding: 60px 0;
    }
}


/* Basics */

:root {
    --primary-color: #9D00FF;
    /* بنفسجي نيون */
    --secondary-color: #00FFE0;
    /* تركواز نيون */
    --dark-color: #0A0A0A;
    /* أسود داكن */
    --light-color: #1A1A1A;
    /* أسود فاتح */
    --text-color: #FFFFFF;
    /* أبيض */
    --text-light: #B3B3B3;
    /* رمادي فاتح */
    --bg-color: #121212;
    /* خلفية داكنة */
    --card-bg: #1E1E1E;
    /* بطاقات سوداء */
    --shadow: 0 0 15px rgba(157, 0, 255, 0.5);
    /* توهج بنفسجي */
    --neon-glow: 0 0 10px rgba(157, 0, 255, 0.8), 0 0 20px rgba(157, 0, 255, 0.6), 0 0 30px rgba(157, 0, 255, 0.4);
    /* تأثير نيون قوي */
}

[data-theme="light"] {
    --primary-color: #9D00FF;
    /* بنفسجي نيون */
    --secondary-color: #00B3E6;
    /* تركواز */
    --dark-color: #FFFFFF;
    /* أبيض */
    --light-color: #F0F0F0;
    /* أبيض فاتح */
    --text-color: #000000;
    /* أسود */
    --text-light: #090101;
    /* رمادي داكن */
    --bg-color: #FAFAFA;
    /* خلفية فاتحة */
    --card-bg: #FFFFFF;
    /* بطاقات بيضاء */
    --shadow: 0 5px 15px rgba(157, 0, 255, 0.2);
    /* ظل بنفسجي خفيف */
}


/* تحسينات ستايل الجيمينج */

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
    /* خطوط مناسبة للجيمينج */
}

.section-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: var(--neon-glow);
}

.btn {
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn.primary {
    background: var(--primary-color);
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.btn.primary:hover {
    background: transparent;
    color: var(--primary-color);
    box-shadow: var(--neon-glow);
    border: 1px solid var(--primary-color);
}

.btn.secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    text-shadow: 0 0 5px rgba(0, 255, 224, 0.5);
}

.btn.secondary:hover {
    background: var(--secondary-color);
    color: black;
    box-shadow: 0 0 15px rgba(0, 255, 224, 0.7);
}

#navbar {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--primary-color);
}

#navbar.scrolled {
    box-shadow: 0 0 20px rgba(157, 0, 255, 0.3);
}

.profile-img {
    border: 5px solid var(--primary-color);
    box-shadow: var(--neon-glow);
    filter: saturate(1.2);
    transition: all 0.5s ease;
}

.profile-img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(157, 0, 255, 0.9);
}

.skill-level,
.stat-item,
.timeline-item,
.contact-info,
.contact-form {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(157, 0, 255, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.skill-level {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 10px rgba(157, 0, 255, 0.5);
}

.timeline::before {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    width: 3px;
    box-shadow: var(--shadow);
}

.timeline-item::before {
    background: var(--secondary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 224, 0.7);
}

footer {
    background: linear-gradient(90deg, var(--primary-color), #6A00CC);
    color: white;
    text-shadow: 0 0 5px black;
}


/* تأثيرات خاصة بالجيمينج */

.glow-effect {
    animation: glow-pulse 2s infinite alternate;
}

@keyframes glow-pulse {
    from {
        text-shadow: 0 0 5px var(--primary-color);
    }
    to {
        text-shadow: 0 0 15px var(--primary-color), 0 0 20px var(--secondary-color);
    }
}

.neon-border {
    position: relative;
}

.neon-border::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid transparent;
    border-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) 1;
    animation: border-glow 3s infinite alternate;
}

@keyframes border-glow {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 1;
    }
}


/* Basics */

:root {
    --primary-color: #9D00FF;
    /* بنفسجي نيون */
    --secondary-color: #00FFE0;
    /* تركواز نيون */
    --dark-color: #FFFFFF;
    /* أبيض */
    --light-color: #F0F0F0;
    /* أبيض فاتح */
    --text-color: #000000;
    /* أسود */
    --text-light: #555555;
    /* رمادي داكن */
    --bg-color: #FAFAFA;
    /* خلفية فاتحة */
    --card-bg: #FFFFFF;
    /* بطاقات بيضاء */
    --shadow: 0 5px 15px rgba(157, 0, 255, 0.2);
    /* ظل بنفسجي خفيف */
    --neon-glow: 0 0 10px rgba(157, 0, 255, 0.3), 0 0 20px rgba(157, 0, 255, 0.2);
}

[data-theme="dark"] {
    --primary-color: #9D00FF;
    /* بنفسجي نيون */
    --secondary-color: #00FFE0;
    /* تركواز نيون */
    --dark-color: #0A0A0A;
    /* أسود داكن */
    --light-color: #1A1A1A;
    /* أسود فاتح */
    --text-color: #FFFFFF;
    /* أبيض */
    --text-light: #B3B3B3;
    /* رمادي فاتح */
    --bg-color: #121212;
    /* خلفية داكنة */
    --card-bg: #1E1E1E;
    /* بطاقات سوداء */
    --shadow: 0 0 15px rgba(157, 0, 255, 0.5);
    /* توهج بنفسجي */
    --neon-glow: 0 0 10px rgba(157, 0, 255, 0.8), 0 0 20px rgba(157, 0, 255, 0.6), 0 0 30px rgba(157, 0, 255, 0.4);
}


/* تحسينات ستايل الجيمينج */

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Rajdhani', 'Segoe UI', sans-serif;
}

.section-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: var(--neon-glow);
}

.btn {
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn.primary {
    background: var(--primary-color);
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.btn.primary:hover {
    background: transparent;
    color: var(--primary-color);
    box-shadow: var(--neon-glow);
    border: 1px solid var(--primary-color);
}

.btn.secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    text-shadow: 0 0 5px rgba(0, 255, 224, 0.5);
}

.btn.secondary:hover {
    background: var(--secondary-color);
    color: black;
    box-shadow: 0 0 15px rgba(0, 255, 224, 0.7);
}

#navbar {
    background-color: var(--dark-color);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.profile-img {
    border: 5px solid var(--primary-color);
    box-shadow: var(--neon-glow);
    filter: saturate(1.2);
    transition: all 0.5s ease;
}

.profile-img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(157, 0, 255, 0.9);
}

.skill-level,
.stat-item,
.timeline-item,
.contact-info,
.contact-form {
    background: var(--card-bg);
    border: 1px solid rgba(157, 0, 255, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.skill-level {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 10px rgba(157, 0, 255, 0.5);
}

.timeline::before {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    width: 3px;
    box-shadow: var(--shadow);
}

.timeline-item::before {
    background: var(--secondary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 224, 0.7);
}

footer {
    background: linear-gradient(90deg, var(--primary-color), #6A00CC);
    color: white;
    text-shadow: 0 0 5px black;
}


/* تأثيرات خاصة بالجيمينج */

.glow-effect {
    animation: glow-pulse 2s infinite alternate;
}

@keyframes glow-pulse {
    from {
        text-shadow: 0 0 5px var(--primary-color);
    }
    to {
        text-shadow: 0 0 15px var(--primary-color), 0 0 20px var(--secondary-color);
    }
}

.neon-border {
    position: relative;
}

.neon-border::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid transparent;
    border-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) 1;
    animation: border-glow 3s infinite alternate;
}

@keyframes border-glow {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 1;
    }
}