/* ==========================================================================
   SUHEB PAPA - MODERN BENTO GRID PORTFOLIO STYLES
   ========================================================================== */

:root {
    --bg-dark: #0b0f19;
    --bg-card: rgba(18, 24, 38, 0.75);
    --bg-card-hover: rgba(28, 36, 56, 0.85);
    --bg-terminal: #070a12;
    
    --primary: #00f2fe;
    --primary-glow: rgba(0, 242, 254, 0.25);
    --secondary: #7928ca;
    --accent-cyan: #00e5ff;
    --accent-violet: #9d4edd;
    --accent-green: #00e676;
    --accent-yellow: #ffb703;
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-sub: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 242, 254, 0.3);
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.dark-theme {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Navigation Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(11, 15, 25, 0.8);
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-bracket {
    color: var(--primary);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-num {
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    color: #050811;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 242, 254, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(0, 242, 254, 0.1);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* Main Container Layout */
.main-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 6.5rem 1.5rem 4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Bento Card General Styling */
.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* HERO CARD Specifics */
.hero-card {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: radial-gradient(circle at top right, rgba(121, 40, 202, 0.15), transparent 60%), var(--bg-card);
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.25);
    color: var(--accent-green);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 1.25rem;
}

.status-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.hero-profile {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.hero-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
}

.hero-name {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-role {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.highlight-text {
    color: var(--primary);
    font-weight: 700;
}

.hero-subtext {
    font-size: 0.88rem;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.icon-inline {
    width: 16px;
    height: 16px;
}

.hero-bio {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

.tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--text-main);
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Metric Cards */
.metric-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.metric-value {
    font-size: 3.2rem;
    font-weight: 800;
    font-family: var(--font-sans);
    color: var(--primary);
    line-height: 1.1;
    margin: 0.75rem 0;
}

.accent-violet .metric-value {
    color: var(--accent-violet);
}

.accent-cyan .metric-value {
    color: var(--accent-cyan);
}

.metric-desc {
    font-size: 0.88rem;
    color: var(--text-sub);
}

/* Spotlight Card */
.spotlight-card {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(121, 40, 202, 0.1) 0%, rgba(0, 242, 254, 0.05) 100%), var(--bg-card);
}

.spotlight-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}

.spotlight-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-violet);
}

.spotlight-header h3 {
    font-size: 1.25rem;
    color: var(--text-main);
}

.spotlight-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.mini-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill {
    background: rgba(121, 40, 202, 0.15);
    border: 1px solid rgba(121, 40, 202, 0.3);
    color: #d8b4fe;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Quick Links Card */
.quick-links-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.link-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-color: var(--primary);
}

.social-icon {
    width: 18px;
    height: 18px;
}

/* Section Header */
.section-header {
    margin-bottom: 2rem;
    position: relative;
}

.section-subtitle {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 0.25rem;
}

.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    margin-top: 0.5rem;
}

/* Timeline Layout */
.timeline {
    position: relative;
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 1.75rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.job-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
}

.job-company {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
}

.job-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.85rem;
    color: var(--text-sub);
}

.job-bullet-list {
    padding-left: 1.2rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.job-bullet-list strong {
    color: var(--text-main);
}

.award-highlight {
    margin-top: 1.25rem;
    padding: 0.85rem 1.1rem;
    background: rgba(255, 183, 3, 0.08);
    border: 1px solid rgba(255, 183, 3, 0.25);
    border-radius: var(--radius-md);
    color: #ffe066;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.award-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--accent-yellow);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.folder-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.badge-tech {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.25);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

.project-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.project-subtitle {
    font-size: 0.88rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.project-description {
    font-size: 0.93rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-sub);
}

.project-tech-list span {
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 8px;
    border-radius: 4px;
}

/* Skills Filter & Grid */
.skills-filter-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 1.1rem;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: #050811;
    border-color: var(--primary);
    font-weight: 700;
}

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

.skill-category h3 {
    font-size: 1.15rem;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.skill-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Grid 2 Column Layout */
.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.section-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.icon-title {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.edu-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edu-header h4 {
    font-size: 1.05rem;
    color: var(--text-main);
}

.edu-date {
    font-size: 0.82rem;
    color: var(--text-sub);
    font-family: var(--font-mono);
}

.edu-degree {
    font-size: 0.92rem;
    color: var(--primary);
}

.edu-spec {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.edu-detail {
    font-size: 0.85rem;
    color: var(--text-sub);
}

.edu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.1rem 0;
}

.honors-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.honor-title {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.98rem;
}

.honor-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Terminal Styling */
.terminal-container {
    background: var(--bg-terminal);
    border: 1px solid rgba(0, 242, 254, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    padding: 0;
    overflow: hidden;
}

.terminal-bar {
    background: #111625;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

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

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-sub);
}

.btn-icon-sm {
    background: transparent;
    border: none;
    color: var(--text-sub);
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.btn-icon-sm:hover { color: var(--text-main); }

.terminal-body {
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: #a7f3d0;
    min-height: 260px;
    max-height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.term-green { color: #34d399; font-weight: 600; }
.term-blue { color: #60a5fa; }
.term-yellow { color: #facc15; }
.term-cyan { color: #22d3ee; }

.term-banner {
    color: var(--primary);
    font-size: 0.7rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.terminal-quick-cmds {
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quick-label {
    font-size: 0.8rem;
    color: var(--text-sub);
}

.btn-cmd {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-cmd:hover {
    background: var(--primary);
    color: #000;
}

.terminal-input-row {
    padding: 0.85rem 1.25rem;
    background: #090d18;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.term-prompt {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--primary);
    white-space: nowrap;
}

#terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    width: 100%;
}

/* Footer Section */
.footer-section {
    margin-top: 2rem;
    background: linear-gradient(135deg, rgba(11, 15, 25, 0.9), rgba(18, 24, 38, 0.95));
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-left h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.footer-left p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.footer-contact-details {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.footer-contact-details a, .footer-contact-details span {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-contact-details a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-sub);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-card {
        grid-column: span 2;
    }
    .spotlight-card {
        grid-column: span 2;
    }
    .projects-grid, .skills-grid, .grid-2col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .hero-card {
        grid-column: span 1;
    }
    .spotlight-card {
        grid-column: span 1;
    }
    .hero-name {
        font-size: 1.8rem;
    }
    .job-header {
        flex-direction: column;
    }
    .job-meta {
        align-items: flex-start;
    }
}
