/* ==========================================
   YASSER BELLA PORTFOLIO - RED & BLACK
   Cloud Security Specialist
   ========================================== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --red-primary: #DC2626;
    --red-dark: #991B1B;
    --red-darker: #7F1D1D;
    --red-bright: #EF4444;
    --gray-light: #E5E5E5;
    --gray-medium: #737373;
    --gray-dark: #404040;
}

body {
    background: var(--black);
    color: var(--gray-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
}

/* ===== MATRIX CANVAS ===== */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.23;
    pointer-events: none;
}

/* ===== NAVIGATION ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.15);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--red-primary);
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.6);
}

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

.nav-link {
    color: #FFFFFF; /* Changed from gray to white */
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red-primary);
    transition: width 0.3s;
}

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

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.text-red-primary {
    color: var(--red-primary);
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.8),
                 0 0 20px rgba(220, 38, 38, 0.5),
                 0 0 30px rgba(220, 38, 38, 0.3);
}

.text-red-dark {
    color: var(--red-dark);
    text-shadow: 0 0 10px rgba(153, 27, 27, 0.8),
                 0 0 20px rgba(153, 27, 27, 0.5);
}

.typewriter-container {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--red-bright);
    margin-bottom: 2rem;
    min-height: 3rem;
}

.cursor {
    color: var(--red-primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #C0C0C0; /* Lighter gray, almost white */
    max-width: 700px;
    margin: 0 auto 3rem;
}

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

/* ===== BUTTONS ===== */
.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-red {
    background: var(--red-dark);
    color: white;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
}

.btn-red:hover {
    background: var(--red-primary);
    box-shadow: 0 0 25px rgba(220, 38, 38, 0.7);
    transform: translateY(-2px);
}

.btn-red-dark {
    background: var(--red-darker);
}

.btn-red-dark:hover {
    background: var(--red-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--red-dark);
    color: var(--gray-light);
}

.btn-outline:hover {
    background: rgba(153, 27, 27, 0.2);
    border-color: var(--red-primary);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== CERTIFICATIONS ===== */
.cert-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.cert-badge {
    background: rgba(10, 0, 0, 0.9);
    border: 2px solid var(--red-dark);
    color: var(--red-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s;
}

.cert-badge:hover {
    border-color: var(--red-primary);
    color: var(--red-bright);
    box-shadow: 0 0 25px rgba(220, 38, 38, 0.6);
    transform: scale(1.05);
}

.cert-badge:nth-child(1) { animation-delay: 0s; }
.cert-badge:nth-child(2) { animation-delay: 0.5s; }
.cert-badge:nth-child(3) { animation-delay: 1s; }
.cert-badge:nth-child(4) { animation-delay: 1.5s; }
.cert-badge:nth-child(5) { animation-delay: 2s; }
.cert-badge:nth-child(6) { animation-delay: 2.5s; }

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

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    color: var(--red-primary);
    font-size: 2rem;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ===== SECTIONS ===== */
.section-padding {
    padding: 5rem 0;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red-dark), transparent);
}

.section-title::before { left: -120px; }
.section-title::after { right: -120px; }

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.profile-wrapper {
    display: flex;
    justify-content: center;
}

.profile-container {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    border-radius: 50%;
    padding: 4px;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(220, 38, 38, 0.5); }
    50% { box-shadow: 0 0 50px rgba(220, 38, 38, 0.8); }
}

.profile-inner {
    width: 100%;
    height: 100%;
    background: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-icon {
    font-size: 8rem;
    color: var(--red-primary);
}

.bio-content {
    max-width: 600px;
}

.bio-title {
    font-size: 2rem;
    font-weight: 700;
    color: #FFFFFF; /* Changed to white */
    margin-bottom: 1.5rem;
}

.bio-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--red-primary);
    margin-top: 0.5rem;
}

.bio-text {
    color: #B0B0B0; /* Lighter than before */
    margin-bottom: 1rem;
    line-height: 1.8;
}

.highlight {
    color: var(--red-primary);
    font-weight: 600;
}

.education-box {
    background: rgba(10, 0, 0, 0.7);
    border: 1px solid var(--red-dark);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.2);
}

.education-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF; /* Changed to white */
    margin-bottom: 1rem;
}

.education-title i {
    color: var(--red-primary); /* Icon stays red */
}

.education-degree {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #FFFFFF; /* Changed to white */
}

.education-school {
    color: var(--gray-medium);
    margin-bottom: 0.25rem;
}

.education-year {
    color: var(--gray-dark);
    margin-bottom: 0.75rem;
}

.education-self {
    color: var(--red-bright);
    font-weight: 600;
}

/* ===== SKILLS ===== */
.skills-section {
    margin-top: 4rem;
}

.skills-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--red-dark);
    margin-bottom: 3rem;
    text-shadow: 0 0 10px rgba(153, 27, 27, 0.5);
}

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

.skill-category {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF; /* Changed from red to white */
    margin-bottom: 1.5rem;
}

.skill-category i {
    color: var(--red-primary); /* Icon stays red */
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    width: 100%;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
    color: #FFFFFF; /* Changed to white */
}

.skill-percent {
    color: var(--red-primary);
    font-weight: 700;
}

.skill-bar {
    background: rgba(10, 0, 0, 0.8);
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(153, 27, 27, 0.3);
}

.skill-fill {
    background: linear-gradient(90deg, var(--red-dark), var(--red-primary));
    height: 100%;
    border-radius: 10px;
    animation: fillBar 2s ease-out;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

@keyframes fillBar {
    from { width: 0 !important; }
}

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

.tech-badge {
    background: rgba(10, 0, 0, 0.6);
    border: 1px solid rgba(153, 27, 27, 0.4);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.tech-badge:hover {
    background: rgba(127, 29, 29, 0.2);
    border-color: var(--red-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.tech-badge i {
    color: var(--red-primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
    display: block;
}

.tech-badge:hover i {
    color: var(--red-bright);
    transform: scale(1.15);
}

.tech-badge p {
    font-weight: 600;
    color: #FFFFFF; /* Changed to white */
    margin: 0;
}

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

.project-card {
    background: rgba(10, 0, 0, 0.8);
    border: 1px solid var(--red-dark);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.2);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--red-primary);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
}

.terminal-header {
    margin-bottom: 1.5rem;
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

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

.dot-red { background: var(--red-primary); }
.dot-yellow { background: #FCD34D; }
.dot-green { background: #10B981; }

.terminal-command {
    font-family: 'Courier New', monospace;
    color: var(--red-primary);
    font-size: 0.875rem;
    font-weight: 600; /* Make it bolder */
}

.project-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #FFFFFF; /* Changed from red to white */
    margin-bottom: 1rem;
}

.project-description {
    color: #A0A0A0; /* Lighter gray */
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.tag {
    background: rgba(153, 27, 27, 0.3);
    color: var(--red-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-link {
    color: var(--red-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.project-link:hover {
    color: var(--red-bright);
    text-decoration: underline;
}

.project-stars {
    color: var(--gray-dark);
    font-size: 0.875rem;
}

.project-stars i {
    color: var(--red-primary);
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

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

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

.form-group label {
    font-weight: 600;
    color: #FFFFFF; /* Changed to white */
}

.form-group input,
.form-group textarea {
    background: rgba(10, 0, 0, 0.6);
    border: 1px solid var(--red-dark);
    color: var(--gray-light);
    padding: 0.875rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(10, 0, 0, 0.9);
    border-color: var(--red-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.form-message.success {
    background: rgba(127, 29, 29, 0.3);
    border: 1px solid var(--red-dark);
    color: var(--red-primary);
}

.form-message.error {
    background: rgba(127, 29, 29, 0.5);
    border: 1px solid var(--red-primary);
    color: var(--red-bright);
}

.hidden {
    display: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.contact-item {
    background: rgba(10, 0, 0, 0.5);
    border-left: 4px solid var(--red-dark);
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.contact-item:hover {
    background: rgba(127, 29, 29, 0.2);
    border-left-color: var(--red-primary);
    transform: translateX(10px);
}

.contact-item i {
    color: var(--red-primary);
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.contact-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #FFFFFF; /* Changed to white */
}

.contact-item a {
    color: #A0A0A0; /* Gray */
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #FFFFFF; /* White on hover instead of red */
}

/* ===== FOOTER ===== */
.footer {
    background: var(--black);
    border-top: 1px solid var(--red-dark);
    padding: 2rem 0;
    text-align: center;
    color: #A0A0A0; /* Lighter gray */
}

.heart {
    color: var(--red-primary);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--red-dark), var(--red-primary));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--red-primary), var(--red-bright));
}

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

    .section-title::before,
    .section-title::after {
        display: none;
    }

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

    .profile-container {
        width: 200px;
        height: 200px;
    }

    .profile-icon {
        font-size: 5rem;
    }

    .skills-grid,
    .tech-grid {
        grid-template-columns: 1fr;
    }

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

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

    .typewriter-container {
        font-size: 1.25rem;
    }

    .cert-badge {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}