/* Importing fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700&display=swap');

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #212121;
    --text-light: #f5f5f5;
    --accent-green: #97ff23;
    --accent-orange: #ff9123;
    --border-grey: #4d4d4d;
    --font-anton: 'Anton', sans-serif;
    --font-inter: 'Inter', sans-serif;
   --accent-green-border: #98ff23a3;

}

body {
    font-family: var(--font-inter);
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-green);
}

/* Vertical Background Lines */
.vertical-lines-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 77%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    z-index: 0;
    opacity: 0.1;
    margin-left: 12%;
    margin-right: 3%;
}

.vertical-lines-bg .line {
    width: 2px;
    height: 100%;
    background-color: white;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-anton);
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.navbar a {
    margin-left: 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-green);
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar .btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--accent-green);
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar .btn:hover {
    background-color: var(--accent-green);
    color: var(--bg-dark);
}

/* Main Content Layout */
.main-content {
    display: flex;
    min-height: 100vh;
    padding-top: 6rem;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.sidebar-left, .sidebar-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    z-index: 0;
}

.sidebar-left {
    left: 1rem;
}

.sidebar-right {
    right: 1rem;
}

.sidebar-text {
    display: flex;
    flex-direction: column;
    gap: 15rem;
    pointer-events: none;
}
.sidebar-text-scroll {
    position: absolute;
    top: 50%;
    transform: rotate(-90deg) translateX(-50%);
    font-size: 1rem;
    font-weight: 600;
    color: var(--border-grey);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    left: 46px;

    transform-origin: top left;
}

.vertical-text {
    font-family: var(--font-anton);
    font-size: 12rem;
    color: rgba(255, 255, 255, 0.05);
    letter-spacing: 5px;
    transform: rotate(90deg) translateY(-50%);
    white-space: nowrap;
    position: absolute;
}

.sidebar-left .vertical-text:first-child {
    top: 15%;
    left: -18rem;
    animation: moveDown 4s ease-in-out infinite alternate;
}

.sidebar-left .vertical-text:last-child {
    top: 60%;
    left: -15rem;
    animation: moveUp 4s ease-in-out infinite alternate;
}

.sidebar-right .vertical-text:first-child {
    top: 15%;
    right: -10rem;
    animation: moveDown 4s ease-in-out infinite alternate;
}

.sidebar-right .vertical-text:last-child {
    top: 60%;
    right: -18rem;
    animation: moveUp 4s ease-in-out infinite alternate;
}

@keyframes moveDown {
    from { transform: rotate(90deg) translateY(-50%) translateY(0); }
    to { transform: rotate(90deg) translateY(-50%) translateY(20px); }
}

@keyframes moveUp {
    from { transform: rotate(90deg) translateY(-50%) translateY(0); }
    to { transform: rotate(90deg) translateY(-50%) translateY(-20px); }
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.hero-name-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
}

.hero-name {
    font-family: var(--font-anton);
    font-size: 6rem;
    letter-spacing: 5px;
    line-height: 1;
}

.hero-profile-container {
    position: relative;
    width: 400px;
    height: 500px;
    margin-bottom: 0;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    position: relative;
    z-index: 2;
}

.arc {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    transition: all 0.5s ease;
    z-index: 1;
}

.arc-1 {
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    border-color: var(--accent-green);
    border-style: solid none none;
    transform: rotate(-10deg);
}

.arc-2 {
    width: 130%;
    height: 130%;
    top: -15%;
    left: -15%;
    border-color: var(--accent-orange);
    border-style: solid none none;
    transform: rotate(20deg);
}

.arc-3 {
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    border-color: var(--accent-green);
    border-style: solid none none;
    transform: rotate(-30deg);
}

/* About Section */
.about-section {
    padding: 6rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 920px;
    background-color: var(--accent-green);
    color: var(--bg-dark);
    padding: 3rem;
    border-radius: 15px;
    position: relative;
    top: -200px;
    z-index: 2;
}

.about-title {
    font-family: var(--font-anton);
    font-size: 3rem;
    letter-spacing: 2px;
}

.about-content p {
    font-size: 1rem;
}

.hero-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    text-align: center;
    width: 100%;
    max-width: 500px;
    margin-top: 1.5rem;
    margin-left: 220px;
}

.hero-badge {
    background-color: var(--bg-dark);
    color: white;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-grey);
    border-radius: 20px;
    width: 100%;
}

.tools-icons-line {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -30px;
    z-index: 1;
}

.tools-icons-bg {
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--border-grey);
    opacity: 0.8;
}

.tools-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 2;
}

.tools-icons i {
    font-size: 2rem;
    color: var(--text-light);
    transition: color 0.3s ease, transform 0.3s ease;
}

.tools-icons i:hover {
    color: var(--accent-green);
    transform: scale(1.2);
}

/* Skills Section */
.skills-section {
    padding: 6rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
}

.skill-item {
    background-color: #2a2a2a;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: left;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: scale(1.05);
}

.skill-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #4d4d4d;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--accent-green);
    width: 0%;
    transition: width 1s ease-out;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-light);
    margin-top: 0.5rem;
    display: block;
    text-align: right;
}

/* Soft Skills Section */
.soft-skills-section {
    padding: 6rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.soft-skills-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 900px;
}

.soft-skill-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.soft-skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

/* Fix: Use flex-direction for correct alignment */
.soft-skill-card:nth-child(odd) {
    flex-direction: row; /* Image on the left for odd children */
}

.soft-skill-card:nth-child(even) {
    flex-direction: row-reverse; /* Image on the right for even children */
}

.soft-skill-image-wrapper {
    flex: 0 0 200px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
}

.soft-skill-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.soft-skill-content {
    flex: 1;
    text-align: left;
}

.soft-skill-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.soft-skill-content p {
    font-size: 1rem;
    color: var(--border-grey);
}
/* Projects Section */
.projects-section {
    padding: 6rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

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

.project-card {
    background-color: #2a2a2a;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--border-grey);
}

.project-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.btn-project {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--accent-green);
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    color: var(--accent-green);
    text-align: center;
    flex: 1; /* لجعل الزرين بنفس العرض */
}

.btn-project:hover {
    background-color: var(--accent-green);
    color: var(--bg-dark);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: var(--border-grey);
    position: relative;
    top: -30px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .sidebar-left, .sidebar-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem 1.5rem;
    }

    .navbar {
        display: none;
    }

    .hero-text {
        font-size: 4rem;
    }

    .profile-container {
        width: 250px;
        height: 350px;
    }

    .about-section {
        padding: 4rem 1.5rem;
    }

    .about-container {
        padding: 2rem;
    }

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

    .soft-skill-card {
        flex-direction: column !important;
        text-align: center;
    }

    .soft-skill-content {
        text-align: center;
    }

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

@media (max-width: 480px) {
    .hero-text {
        font-size: 3rem;
    }

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

/* Event Details Page Styles */
.event-details-page {
    background-color: var(--bg-dark);
}

.main-event-content {
    padding-top: 8rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.event-hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 3rem 0;
}

.event-image-container {
    position: relative;
    width: 500px;
    height: 500px;
}

.event-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    position: relative;
    z-index: 2;
    border: 1px solid var(--accent-green-border);
}

.event-arc {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    z-index: 1;
}

.event-arc.arc-1 {
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    border-color: var(--accent-orange);
    border-style: solid none none;
    transform: rotate(10deg);
}

.event-arc.arc-2 {
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    border-color: var(--border-grey);
    border-style: solid none none;
    transform: rotate(-20deg);
}

.event-info {
    max-width: 700px;
}

.event-title-details {
    font-family: var(--font-anton);
    font-size: 4rem;
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 1rem;
}

.event-description-details {
    font-size: 1.2rem;
    color: var(--border-grey);
    margin-bottom: 1.5rem;
}

.event-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1rem;
    font-weight: 500;
}

.event-vibes-section {
    padding: 6rem 3rem;
    width: 100%;
    max-width: 1000px;
}

.vibes-title {
    font-family: var(--font-anton);
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.vibes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.vibe-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


/* Media Queries for Event Details Page */
@media (max-width: 768px) {
    .event-title-details {
        font-size: 3rem;
    }

    .event-info {
        padding: 0 1rem;
    }

    .event-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Project Details Page Styles */
.project-details-page {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.main-project-content {
    padding-top: 8rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project-details-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem 0;
    max-width: 900px;
    width: 100%;
}

.project-details-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--accent-green);
}

.project-title-details {
    font-family: var(--font-anton);
    font-size: 3.5rem;
    letter-spacing: 2px;
    margin-top: 1rem;
}

.project-info-container {
    background-color: #2a2a2a;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
    text-align: left;
    margin-bottom: 4rem;
}

.info-title {
    font-family: var(--font-anton);
    font-size: 2rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-grey);
    padding-bottom: 0.5rem;
}

.info-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.technologies-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tech-badge {
    background-color: var(--border-grey);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.github-link {
    color: var(--accent-green);
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.github-link:hover {
    color: #c0c0c0;
}

/* Media Queries for Project Details Page */
@media (max-width: 768px) {
    .project-details-header {
        padding: 2rem 1rem;
    }

    .project-details-img {
        width: 90%;
    }

    .project-title-details {
        font-size: 2.5rem;
    }
    
    .project-info-container {
        padding: 2rem;
    }

    .info-title {
        font-size: 1.5rem;
    }

    .info-description {
        font-size: 0.9rem;
    }
}
/* Project Snapshots Section */
.project-snapshots-section {
    padding: 3rem 0;
    width: 100%;
    max-width: 900px;
}

.snapshots-title {
    font-family: var(--font-anton);
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-align: center;
}

.snapshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.snapshot-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.snapshot-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments for Project Details Page */
@media (max-width: 768px) {
    .snapshots-title {
        font-size: 2rem;
    }
}

/* Contact Section */
.contact-section {
    padding: 6rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-container {
    max-width: 800px;
    width: 100%;
    background-color: #2a2a2a;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.contact-section h2 {
    font-family: var(--font-anton);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-section p {
    font-size: 1.1rem;
    color: var(--border-grey);
    margin-bottom: 2rem;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--text-light);
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-icon:hover {
    color: var(--accent-green);
    transform: scale(1.2);
}