/* --- MATRIX THEME VARIABLES --- */
:root {
    --bg-color: #050505;
    --bg-light: #111111;
    --text-main: #e0e0e0;
    --text-muted: #888888;
    
    /* Matrix Green Accents */
    --accent-color: #00ff41;
    --accent-glow: 0 0 10px rgba(0, 255, 65, 0.5), 0 0 20px rgba(0, 255, 65, 0.3);
    --accent-hover: #00cc33;
    
    --font-mono: 'Fira Code', monospace;
    --font-sans: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background matrix effect */
.matrix-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    z-index: -1;
    opacity: 0.25; /* Subtle background effect */
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 {
    font-family: var(--font-mono);
    font-weight: 600;
    color: #fff;
}

.highlight {
    color: var(--accent-color);
    text-shadow: var(--accent-glow);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
    box-shadow: var(--accent-glow);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-family: var(--font-mono);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.2) inset;
}

.btn-primary:hover {
    background-color: rgba(0, 255, 65, 0.1);
    box-shadow: var(--accent-glow);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-main);
    border: 1px solid #333;
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* --- NAVBAR --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #222;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-shadow: var(--accent-glow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
    text-shadow: var(--accent-glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.greeting {
    font-family: var(--font-mono);
    color: var(--accent-color);
    margin-bottom: 15px;
}

.glitch {
    font-size: 4rem;
    margin-bottom: 10px;
    position: relative;
}

.subtitle {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.bio {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero-image-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    position: relative;
    z-index: 2;
    transition: var(--transition);
    border: 2px solid #222;
}

.profile-pic.default-pic {
    opacity: 1;
}

.profile-pic.hover-pic {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 3;
}

.hero-image-wrapper:hover .default-pic {
    opacity: 0;
}

.hero-image-wrapper:hover .hover-pic {
    opacity: 1;
}

.hero-image-wrapper:hover .profile-pic {
    border-color: var(--accent-color);
}

.glow-box {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    z-index: 1;
    transition: var(--transition);
}

.hero-image-wrapper:hover .glow-box {
    top: 25px;
    left: 25px;
}

/* --- CAPABILITY MATRIX & CREDENTIALS --- */
.matrix-layout {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.matrix-left {
    flex: 2;
}

.matrix-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.skills-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.skill-pill {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid #333;
    padding: 10px 18px;
    border-radius: 50px;
    transition: var(--transition);
    gap: 10px;
}

.skill-pill:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
    transform: translateY(-2px);
    background: rgba(0, 255, 65, 0.05);
}

.skill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.skill-name {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-main);
    white-space: nowrap;
}

/* Credential Plaque */
.cert-container {
    flex-grow: 1;
    display: flex;
    margin-top: 10px;
}

.credential-plaque {
    position: relative;
    width: 100%;
    background: linear-gradient(145deg, #111, #0a0a0a);
    border: 1px solid #222;
    border-radius: 12px;
    padding: 30px 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
}

.plaque-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,255,65,0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.credential-plaque:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.15);
}

.credential-plaque:hover .plaque-glow {
    opacity: 1;
}

.plaque-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cert-info h3 {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 5px;
    font-family: var(--font-mono);
}

.cert-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.cert-verify {
    font-size: 0.85rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    transition: var(--transition);
}

.credential-plaque:hover .cert-verify {
    background: var(--accent-color);
    color: #000;
}

@media (max-width: 900px) {
    .matrix-layout {
        flex-direction: column;
    }
}

/* --- PROJECTS SECTION --- */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    color: var(--accent-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-light);
    border: 1px solid #222;
    border-radius: 5px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.project-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-type {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-color);
    background: rgba(0, 255, 65, 0.1);
    padding: 4px 8px;
    border-radius: 3px;
}

.project-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--accent-color);
}

/* --- RESUME SECTION --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: #333;
    top: 0;
    bottom: 0;
    left: 20px;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    left: 13px;
    top: 5px;
    box-shadow: var(--accent-glow);
}

.timeline-date {
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-company {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 15px;
}

.timeline-desc {
    font-size: 0.95rem;
    color: #ccc;
}

/* --- CONTACT SECTION --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-light);
    padding: 40px;
    border: 1px solid #222;
    border-radius: 5px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    color: var(--text-main);
    text-decoration: none;
    padding: 10px 15px;
    border: 1px solid #333;
    border-radius: 4px;
    transition: var(--transition);
}

.social-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(0, 255, 65, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    margin-bottom: 8px;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-color);
    border: 1px solid #333;
    color: var(--text-main);
    font-family: var(--font-sans);
    border-radius: 4px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.2);
}

.submit-btn {
    width: 100%;
    text-align: center;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 30px 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid #222;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        display: none; /* In a real app, toggle with JS */
    }
    
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .glitch {
        font-size: 2.5rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* OLD CERTS CSS REMOVED */

/* --- TERMINAL CURSOR --- */
.cursor {
    display: inline-block;
    width: 10px;
    animation: blink 1s step-end infinite;
}

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