/* Minimalist Architectural Portfolio - Abdelrhman Shaban */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700;900&display=swap');

:root {
    --bg-primary: #0c0c0c;
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #e31e24; /* Minimal red accent */
    --border: rgba(255, 255, 255, 0.1);
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header & Nav */
header {
    height: 100px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    transition: background 0.4s var(--transition);
}

header.scrolled {
    background: rgba(12, 12, 12, 0.95);
    height: 80px;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 5px;
    cursor: pointer;
}

/* Side-by-Side Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.nav-link.highlight {
    color: var(--accent);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    width: 35px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2100;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all 0.4s var(--transition);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2050;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(1, 0, 0, 1);
}

.menu-overlay.active {
    transform: translateY(0);
}

.overlay-links {
    list-style: none;
    text-align: center;
}

.overlay-links li {
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s var(--transition);
}

.menu-overlay.active .overlay-links li {
    opacity: 1;
    transform: translateY(0);
}

.menu-link {
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #444;
    transition: color 0.3s, letter-spacing 0.3s;
}

.menu-link:hover {
    color: #fff;
    letter-spacing: 8px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop') center/cover;
    overflow: hidden;
}

.hero-content {
    width: 100%;
}

.hero h1 {
    font-size: 6vw;
    margin-bottom: 0.5rem;
    line-height: 1;
    font-weight: 900;
}

.hero h2 {
    font-size: 2.5vw;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero p {
    max-width: 600px;
    font-size: 1.1rem;
    color: #ccc;
    font-weight: 300;
    line-height: 1.8;
}

.cta-button {
    margin-top: 2rem;
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid #fff;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: all 0.3s;
    background: transparent;
    color: #fff;
}

.cta-button:hover {
    background: #fff;
    color: #000;
}

/* Common Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-label {
    display: block;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 15px;
    font-size: 0.8rem;
}

/* Project Filters */
.tabs-container {
    margin-bottom: 50px;
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    color: #555;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
}

.tab-btn.active {
    color: #fff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #000;
    cursor: pointer;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.8s var(--transition), opacity 0.8s;
}

.project-card:hover .project-image {
    transform: scale(1.05);
    opacity: 0.4;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s var(--transition);
}

.project-card:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}

.project-card.software-card {
    border: 1px solid rgba(227, 30, 36, 0.3);
}

.project-card.software-card:hover {
    box-shadow: 0 0 30px rgba(227, 30, 36, 0.2);
}

.p-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 5px;
    color: #fff;
}

.p-cat {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Modal / Gallery Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.modal-content {
    background: #111;
    width: 95%;
    height: 90%;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    position: relative;
    border: 1px solid var(--border);
}

.modal-visuals {
    position: relative;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-visuals img, .modal-visuals video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-info {
    padding: 60px;
    overflow-y: auto;
    border-left: 1px solid var(--border);
}

.modal-info h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.modal-meta-list {
    list-style: none;
    border-top: 1px solid var(--border);
}

.modal-meta-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.meta-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
}

.meta-value {
    font-weight: 700;
    font-size: 0.9rem;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 3100;
}

.modal-nav {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.modal-nav button {
    pointer-events: auto;
    background: rgba(227, 30, 36, 0.2);
    color: #fff;
    border: none;
    width: 60px;
    height: 60px;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.modal-nav button:hover {
    background: var(--accent);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    padding: 50px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--accent);
    transition: width 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card:hover::after {
    width: 100%;
}

.s-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 25px;
}

.s-icon i {
    color: var(--accent);
}

.s-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 15px;
}

/* Footer Section */
footer {
    padding: 100px 0;
    background: #000;
    text-align: center;
    border-top: 1px solid #111;
}

.footer-logo {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 30px;
    letter-spacing: 5px;
}

.footer-socials {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-socials a {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: #fff;
}

/* Floating Side Pill (Socials) */
.side-pill {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 25px 15px;
    border-radius: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    z-index: 2200;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}

.side-pill a, .theme-toggle {
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: all 0.3s;
    cursor: pointer;
}

.side-pill a:hover, .theme-toggle:hover {
    color: var(--accent);
    transform: scale(1.2);
}

.pill-divider {
    width: 60%;
    height: 1px;
    background: var(--border);
}

/* Contact Card (Minimalist Luxury Style) */
.contact-card {
    background: #000;
    border: 1px solid var(--accent);
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    max-width: 1000px;
    margin: 50px auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(227, 30, 36, 0.1);
}

.contact-card h3 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.contact-card h3 span {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(227, 30, 36, 0.3);
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 50px;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.contact-actions .cta-button {
    margin-top: 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 35px;
    border: 1px solid #fff;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: all 0.3s;
    background: transparent;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.cta-button.primary {
    background: var(--accent);
    border: 1px solid var(--accent);
}

.cta-button.primary:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.cta-button:hover {
    background: #fff;
    color: #000;
}

/* Resume Section (Architectural Split Layout) */
.resume-section {
    padding: 120px 0;
    background: #000;
}

.resume-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 80px;
    align-items: start;
}

/* Sidebar - Profile Card */
.resume-sidebar {
    position: sticky;
    top: 120px;
}

.profile-card {
    background: #0c0c0c;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.profile-img-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 25px;
    overflow: hidden;
    border: 3px solid var(--accent);
    padding: 5px;
}

.profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.profile-card:hover .profile-img-container img {
    filter: grayscale(0%);
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.profile-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.profile-divider {
    width: 50px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto 25px;
}

.profile-contact {
    text-align: left;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #ccc;
}

.contact-item i {
    color: var(--accent);
    width: 20px;
}

.profile-socials-card {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.profile-socials-card a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.profile-socials-card a:hover {
    color: var(--accent);
}

/* Timeline Components */
.timeline-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.timeline-header i {
    font-size: 1.5rem;
    color: var(--accent);
    background: rgba(227, 30, 36, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.timeline-header h4 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #000;
    border: 2px solid var(--accent);
    z-index: 2;
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(227, 30, 36, 0.1);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.timeline-content h5 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.timeline-content .company {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ccc;
    margin-bottom: 5px;
    display: block;
}

.timeline-content .location {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 15px;
    display: block;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Detailed Sidebar Cards (New) */
.resume-card-detail {
    background: #0c0c0c;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
    text-align: left;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #1a1a1a;
}

.card-header i {
    color: var(--accent);
    font-size: 0.9rem;
}

.card-header h5 {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.skills-checklist {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.skills-checklist li {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
}

.skills-checklist li i {
    color: var(--accent);
    font-size: 0.7rem;
}

.tools-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-tag {
    background: #151515;
    border: 1px solid #222;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #999;
}

/* Courses Styling */
.course-card {
    background: #0c0c0c;
    border: 1px solid var(--border);
    padding: 20px 25px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    transition: transform 0.3s, border-color 0.3s;
}

.course-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.course-info h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.course-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.course-date {
    background: rgba(227, 30, 36, 0.1);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Standalone Resume Navigation */
.resume-nav-top {
    margin-bottom: 40px;
}

.back-home-btn {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.back-home-btn:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 992px) {
    .resume-layout {
        grid-template-columns: 1fr;
    }
    .resume-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 60px;
    }
    .modal-content {
        grid-template-columns: 1fr;
        height: auto;
        max-height: 95vh;
        overflow-y: auto;
    }
    .modal-info { padding: 30px; border-left: none; border-top: 1px solid var(--border); }
    .hero h1 { font-size: 4rem; }
    .side-pill { right: 15px; padding: 20px 10px; }
    #about .container > div {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .desktop-nav {
        display: none; /* Hide side-by-side links on mobile */
    }
    
    .menu-toggle {
        display: flex; /* Show hamburger on mobile */
    }
}

@media (max-width: 768px) {
    .side-pill { display: none; }
    .contact-card h3 { font-size: 2rem; }
    .section-title { font-size: 2.5rem; }
    .container { padding: 0 20px; }
    .hero h1 { font-size: 3.2rem; }
    .hero h2 { font-size: 1.4rem; }
    .hero-content > div { flex-wrap: wrap; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-info {
        opacity: 1;
        transform: none;
        padding: 24px;
        background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    }
    .modal-meta-list li { flex-direction: column; gap: 4px; }
    .course-card { align-items: flex-start; flex-direction: column; gap: 10px; }
}
